deleteEmailTemplate method

Future<void> deleteEmailTemplate({
  1. required String templateName,
})

Deletes an email template.

You can execute this operation no more than once per second.

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

Parameter templateName : The name of the template to be deleted.

Implementation

Future<void> deleteEmailTemplate({
  required String templateName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/v2/email/templates/${Uri.encodeComponent(templateName)}',
    exceptionFnMap: _exceptionFns,
  );
}