deleteEmail method
Delete an email
Deletes an email and removes it from the inbox. Deleted emails cannot be recovered.
Parameters:
- String emailId (required): ID of email to delete
Implementation
Future<void> deleteEmail(String emailId,) async {
final response = await deleteEmailWithHttpInfo(emailId,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}