delete
https://{youraccountname}.api-us1.com/api/3/messages/bulk_delete
Deletes several email messages in one call. This is the bulk counterpart of DELETE /messages/{id} and the v3 equivalent of the v1 message_delete_list action.
The body selects what to delete, in one of two shapes:
{"ids": [1, 2]}deletes the given messages, at most 25 per call.{"deleteFirst": 5}deletes the account's oldest messages that are not already hidden, lowest id first, from 1 to 10 of them.
ids and deleteFirst are mutually exclusive. A message that a campaign uses is hidden instead of deleted, so the campaign keeps its history; a message no campaign uses is deleted together with its files. deleted, hidden and failed report the outcome per message id.
The account must have the Campaigns module, and the API user needs the permission to delete campaigns, which also governs deleting messages.
