Skip to content

Delete an account-level template version

Request

Delete a specific version of an account-level template.

Security
basicAuth
Path
template_namestringrequired

Template name the version is stored under.

version_namestringrequired

Tag of the version of the template to be deleted.

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

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

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

Template change details

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