---
title: "Delete a template"
method: DELETE
path: "/email/templates/{id}"
tags: ["Templates"]
---

# Delete a template

`DELETE /email/templates/{id}`

## Request

- Base URL: `https://www.unitpost.com/api/v1`
- URL: `https://www.unitpost.com/api/v1/email/templates/{id}`
- Auth: HTTP bearer

Permanently delete a template. Emails already sent with it are unaffected, but future sends that reference its id will fail — update any code or campaigns that still point at it first (see [List campaigns](#get-email-campaigns)). Requires the `templates:write` capability.

## Response `204`

Deleted.

## Other responses

- `401`: Missing or invalid API key.
- `404`: Template not found.

---

[API](https://skmtc.dev/unitpost/apis/unitpost-api.md) · [All operations](https://skmtc.dev/unitpost/apis/unitpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/unitpost/apis/unitpost-api/revisions/86ff7c890967?raw)
