deleteEmailIdentity method

Future<void> deleteEmailIdentity({
  1. required String emailIdentity,
})

Deletes an email identity. An identity can be either an email address or a domain name.

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

Parameter emailIdentity : The identity (that is, the email address or domain) that you want to delete.

Implementation

Future<void> deleteEmailIdentity({
  required String emailIdentity,
}) async {
  ArgumentError.checkNotNull(emailIdentity, 'emailIdentity');
  _s.validateStringLength(
    'emailIdentity',
    emailIdentity,
    1,
    1152921504606846976,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/v2/email/identities/${Uri.encodeComponent(emailIdentity)}',
    exceptionFnMap: _exceptionFns,
  );
}