# Delete Template

Canonical: https://docs.bluehola.com/docs/templates-flows-media/delete-v1-templates-id
OpenAPI: https://docs.bluehola.com/openapi.yaml

<div class="endpoint"><span class="endpoint-method endpoint-method--delete">DELETE</span><code class="endpoint-path">/v1/templates/{id}</code></div>

Delete a template, returning 204.

:::note[Authentication]

Send `Authorization: Bearer <API_KEY>` in the request headers; required scope: `templates:manage`. Which resources an API Key can reach is determined by its current authorization scope.

:::

## Request

Base URL: `https://api.bluehola.com`

### Parameters

| Name | In | Required | Type / constraints | Description |
| --- | --- | --- | --- | --- |
| `id` | path | Yes | string | The platform's template ID, `tmpl_...` |

## Response

| Status | Description |
| --- | --- |
| `204` | No Content |
| `4xx` | Client error |

For the common error envelope and how to handle it, see [Error Codes](../guides/error-codes.md).

## Notes

Deletion calls out to Meta first to delete the template by name (Meta's semantics delete every language version of that name under the WABA), and only removes the local row once that succeeds. If the call to Meta fails, the whole operation fails, so you never end up with an inconsistent state where the local row is gone but the Meta side still exists, or vice versa.
