deleteAllInboxEmailsWithHttpInfo method
Delete all emails in a given inboxes.
Deletes all emails in an inbox. Be careful as emails cannot be recovered
Note: This method returns the HTTP Response
.
Parameters:
- String inboxId (required):
Implementation
Future<Response> deleteAllInboxEmailsWithHttpInfo(String inboxId,) async {
// ignore: prefer_const_declarations
final path = r'/inboxes/{inboxId}/deleteAllInboxEmails'
.replaceAll('{inboxId}', inboxId);
// 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,
);
}