Skip to content

Delete a domain

Request

The domain must not be disabled or used as an authority for an other domain. Sandbox domain can't be deleted.

Security
basicAuth
Path
namestringrequired

The name of the domain to delete

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

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

Response
{ "message": "Domain will be deleted in the background" }