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

# Delete a template

`DELETE /v1/templates/{id}`

## Request

- Base URL: `https://smtpfa.st/api`
- URL: `https://smtpfa.st/api/v1/templates/{id}`
- Auth: HTTP bearer

Delete a template by id or alias. Emails already sent with it are not affected. Requires the email:send scope.

## Path parameters

- `id` string, required

## Response `200`

Template deleted

- TemplateDeleted
  - `object` string
  - `id` string
  - `deleted` boolean

## Other responses

- `401`: Invalid or missing API key
- `403`: Forbidden - domain not verified or insufficient permissions
- `404`: Resource not found
- `429`: Rate limit exceeded - retry after the period indicated in the Retry-After header
- `500`: Internal server error

---

[API](https://skmtc.dev/smtpfa/apis/smtpfast-api.md) · [All operations](https://skmtc.dev/smtpfa/apis/smtpfast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smtpfa/apis/smtpfast-api/revisions/79dda742f53e?raw)
