Skip to content

Delete all templates

Request

Delete all templates and their versions for the domain.

Security
basicAuth
Path
domain_namestringrequired

Domain name the template is associated with.

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

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

Response
{ "message": "templates have been deleted" }