Messages

Delete messages

Permanently delete multiple messages from a folder.

post/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/delete

Request

  • Base URL: https://api.mail.hostinger.com
  • URL: https://api.mail.hostinger.com/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/delete
  • Auth: HTTP bearer

Path parameters

mailboxResourceIdstring required

Resource ID of the managed mailbox the bearer token is authorized for.

folderstring required

Folder path (URL-encoded).

Request body

uidsinteger[] required

Message UIDs to delete. 1-100 entries, each > 0.

Example request

{
  "uids": [
    42,
    43,
    44
  ]
}

Response

Messages deleted successfully.

Changes

No recorded changes to this operation across all 1 revision of this API.