Delete a message
DELETE/api/accounts/:accountId/folders/:folder/messages/:uid
Deletes one message the way a mail client's Delete button does: it is marked \Seen and moved to the Trash folder, where it can still be recovered.
If the message is already in Trash or in Spam, or the account has no Trash folder, it is flagged \Deleted and expunged instead, which removes it for good.
Request
Responses
- 204
- 401
- 404
- 424
Deleted.
The session has no mailbox access token. code is mail_token_missing; sign in again.
The account does not exist or belongs to another user.
The IMAP, SMTP or Sieve server, or the platform, refused the request or could not be reached.