For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • FreeCustom.Email API
        • GETList inboxes
        • POSTRegister an inbox
          • DELUnregister an inbox
            • GETList messages
              • GETGet a message
              • DELDelete a message
LogoLogo
FreeCustom.Email APIV1InboxesInboxMessagesID

Delete a message

||View as Markdown|
DELETE
https://api2.freecustom.email/v1/inboxes/:inbox/messages/:id
DELETE
/v1/inboxes/:inbox/messages/:id
$curl -X DELETE https://api2.freecustom.email/v1/inboxes/%7B%7Bmailbox%7D%7D/messages/%7B%7BmessageId%7D%7D \
> -H "Authorization: Bearer <token>"
1{
2 "success": true,
3 "message": "string"
4}
Permanently deletes a single message from the specified inbox by its message ID. **Path parameters:** - `:inbox` — URL-encoded inbox address (e.g., `test%40domain.com`) - `:id` — Message ID returned by `GET /v1/inboxes/:inbox/messages` **Behaviour:** - Returns `204 No Content` on success — no response body. - Returns `404` if the message or inbox does not exist. - Deletion is immediate and irreversible. **Plan:** All plans (Free and above).
Was this page helpful?
Previous

Get a message

Next

Get latest OTP

Built with

Permanently deletes a single message from the specified inbox by its message ID.

Path parameters:

  • :inbox — URL-encoded inbox address (e.g., test%40domain.com)
  • :id — Message ID returned by GET /v1/inboxes/:inbox/messages

Behaviour:

  • Returns 204 No Content on success — no response body.
  • Returns 404 if the message or inbox does not exist.
  • Deletion is immediate and irreversible.

Plan: All plans (Free and above).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

inboxstringRequired
idstringRequired

Response

OK
successboolean
messagestring

Errors

401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error