Skip to content

Clear allowlist

Request

Delete an entire allowlist for a domain

Security
basicAuth
Path
domain_namestringrequired

Domain to delete allowlist entries from

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

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

Response
{ "message": "Allowlist addresses/domains for this domain have been removed" }