deleteContactList method

Future<void> deleteContactList({
  1. required String contactListName,
})

Deletes a contact list and all of the contacts on that list.

May throw TooManyRequestsException. May throw NotFoundException. May throw BadRequestException. May throw ConcurrentModificationException.

Parameter contactListName : The name of the contact list.

Implementation

Future<void> deleteContactList({
  required String contactListName,
}) async {
  ArgumentError.checkNotNull(contactListName, 'contactListName');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v2/email/contact-lists/${Uri.encodeComponent(contactListName)}',
    exceptionFnMap: _exceptionFns,
  );
}