---
title: "Delete an SMS template"
description: "Permanently delete an SMS template. `DELETE /api/v1/sms/templates/{id}`"
url: https://www.unitpost.com/docs/sms/delete-sms-templates-id
section: "SMS API reference"
updated: 2026-10-13
---
# Delete an SMS template

`DELETE /api/v1/sms/templates/{id}`

Permanently delete an SMS template. Refused with `409` while any campaign references it, and with `resource_in_use` while a live automation sends it. Requires the `templates:write` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | — |

## Responses

| Status | Description |
| --- | --- |
| 204 | Deleted. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 404 | SMS template not found, or SMS is not enabled. |
| 409 | The template is referenced by a campaign or live automation. |

## Example request

```bash
curl -X DELETE 'https://www.unitpost.com/api/v1/sms/templates/tmpl_123' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/sms/delete-sms-templates-id
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
