---
title: "Delete Email Template"
method: DELETE
path: "/mailagents/{mailagent-alias}/templates/{template-key}"
tags: ["email templates"]
---

# Delete Email Template

`DELETE /mailagents/{mailagent-alias}/templates/{template-key}`

## Request

- Base URL: `https://cpaas.zoho.com/v1.1`
- URL: `https://cpaas.zoho.com/v1.1/mailagents/{mailagent-alias}/templates/{template-key}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://accounts.zoho.com/oauth/v2/auth`
    - Token URL: `https://accounts.zoho.com/oauth/v2/token` scopes: `Zeptomail.MailTemplates.DELETE`
  - OAuth 2
    - Authorization code: `https://accounts.zoho.com/oauth/v2/auth`
    - Token URL: `https://accounts.zoho.com/oauth/v2/token` scopes: `Zeptomail.MailTemplates.ALL`

Delete an existing email template using its template key.

## Path parameters

- `mailagent-alias` string, required
- `template-key` string, required

## Response `200`

Template deleted successfully.

- object
  - `message` string
  - `status` string

## Other responses

- `404`: Template not found

---

[API](https://skmtc.dev/zoho/apis/zoho-cpaas.md) - [All operations](https://skmtc.dev/zoho/apis/zoho-cpaas/llms.txt) - [OpenAPI document](https://skmtc.dev/zoho/apis/zoho-cpaas/revisions/f0858a38e8b0?raw)
