deleteContact method
Removes a contact from a contact list.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter contactListName :
The name of the contact list from which the contact should be removed.
Parameter emailAddress :
The contact's email address.
Implementation
Future<void> deleteContact({
required String contactListName,
required String emailAddress,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/v2/email/contact-lists/${Uri.encodeComponent(contactListName)}/contacts/${Uri.encodeComponent(emailAddress)}',
exceptionFnMap: _exceptionFns,
);
}