For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete a message

Permanently delete an inbound message and its stored body and attachments.

delete
Authorizations
Api-TokenstringRequired

API token in Api-Token header

Path parameters
inbox_idintegerRequired

Inbound inbox ID

Example: 1
idstringRequired

Inbound message ID

Example: 1700000000000123
Responses
204

Message deleted

No content

delete/api/inbound/inboxes/{inbox_id}/messages/{id}
curl -X DELETE https://mailtrap.io/api/inbound/inboxes/{inbox_id}/messages/{id} \
  -H 'Authorization: Bearer YOUR_API_KEY'

No content

Last updated

Was this helpful?