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

# Delete a template

`DELETE /templates/{id}`

## Request

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

Rejected with 409 `template_in_use` if a campaign still references it (the response lists the campaigns using it). Required scope: `templates:write`.

## Path parameters

- `id` string, required: Template ID.

## Response `200`

Template deleted.

- Ok
  - `ok` true, required

## Other responses

- `401`: Missing or invalid token.
- `403`: Insufficient scope.
- `404`: Resource not found.
- `409`: State conflict (e.g. duplicate).

---

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