deleteEmailWithHttpInfo method

Future<Response> deleteEmailWithHttpInfo(
  1. String emailId
)

Delete an email

Deletes an email and removes it from the inbox. Deleted emails cannot be recovered.

Note: This method returns the HTTP Response.

Parameters:

  • String emailId (required): ID of email to delete

Implementation

Future<Response> deleteEmailWithHttpInfo(String emailId,) async {
  // ignore: prefer_const_declarations
  final path = r'/emails/{emailId}'
    .replaceAll('{emailId}', emailId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}