Move an email to the trash
DELETE
Moves the email to the trash folder of its mailbox, locally and at the provider (in the background). Never a permanent deletion: the message stays recoverable. Deleting an email already in the trash returns 204 as well. Delivered to email.deleted webhooks when the move actually happened.
Authorization
apiKey Authorization<token>
Your 48 character Emelia API key, the same as for the Emelia API, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api. Disabling a key can take up to 5 minutes to apply to the Inbox API.
In: header
Path Parameters
emailId*string
Inbox id of the email (from GET /emails, webhooks...).
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/emails/cmemacme0000000000000001" \ -H "Authorization: YOUR_API_KEY"Empty