Skip to content

Delete an account-level template

Request

Delete the account-level template specified in the url NOTE: This method deletes all versions of the specified template.

Security
basicAuth
Path
template_namestringrequired

Template name to be deleted.

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

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

templateobject(github.com-mailgun-temple-httpapi-templateUpdate)required

Template change details

Response
{ "message": "template has been deleted", "template": { "name": "template_name" } }