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_idintegerRequiredExample:
Inbound inbox ID
1idstringRequiredExample:
Inbound message ID
1700000000000123Responses
204
Message deleted
No content
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not found
application/json
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?

