Skip to content

Delete scheduled and undelivered mail

Request

Deletes all scheduled and undelivered mail from the domain queue. This endpoint must be called on the same storage API host as the mail's generated storage URL. e.g. https://storage-us-east4.api.mailgun.net/v3/example.com/envelopes

The storage hosts are: storage-us-east4.api.mailgun.net, storage-us-west1.api.mailgun.net, and storage-europe-west1.api.mailgun.net.

Security
basicAuth
Path
domain_namestringrequired

The name of the domain you want to delete envelope from

curl -i -X DELETE \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/{domain_name}/envelopes'

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

Response
{ "message": "done" }