Delete Email Template

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Delete an existing email template using its template key.

Request URL

https://cpaas.zoho.com/v1.1/mailagents/{mailagent-alias}/templates/{template-key} Copied!

Scope

Zeptomail.MailTemplates.DELETECopied!
(or)
Zeptomail.MailTemplates.ALLCopied!

Request Parameters

- Path Parameters

mailagent-aliasstringMandatory

Unique alias of the Mail Agent.

Example
your-mailagent-alias
template-keystringMandatory

Unique key of the email template.

Example
1234567890

Sample Request

Curl
Java
Python
Deluge
Copied!
curl --request DELETE \
  --url https://cpaas.zoho.com/v1.1/mailagents/{mailagent-alias}/templates/{template-key} \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Show Sub-Attributes
messagestringread-only
Example
Template deleted successfully.
statusstringread-only
Example
success

- HTTP code 404

Response Body - application/json
JSON Object
Show Sub-Attributes
errorJSON Object
Show Sub-Attributes
codestringread-only
Example
TM_404
messagestringread-only
Example
Template not found
statusstringread-only
Example
failure

Sample Response: HTTP 200

Copied!
  {
    "message": "Template deleted successfully.",
    "status": "success"
  }
                
▼ Show full

Sample Response: HTTP 404

Copied!
  {
    "error": {
      "code": "TM_404",
      "message": "Template not found"
    },
    "status": "failure"
  }
                
▼ Show full