Skip to content

Clear all unsubscribes

Request

Clear all unsubscribe email addresses for the domain. Delivery to the deleted email addresses will no longer be suppressed.

Security
basicAuth
Path
domain_namestringrequired

Domain to delete unsubscribes from

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

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

Response
{ "message": "Unsubscribe addresses for this domain have been removed" }