Skip to content

Delete a version

Request

Delete a specific template version.

Security
basicAuth
Path
domain_namestringrequired

Domain name the template is associated with.

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/v3/{domain_name}/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": {} } }