# Delete a template

`DELETE https://api.signwithsigil.com/v1/templates/{uid}`

Delete a template. Pacts already made from it keep their own copy of the document.

## Authorization

Header `Authorization: Bearer sgk_…` (or `X-Api-Key: sgk_…`).

## Path parameters

- `uid` (string, required): The template's 8-character id. Not case-sensitive.

## Response

`204 No Content`: Deleted. There is no body.

## Errors

| Status | When |
|---|---|
| 401 | The API key is missing, wrong or revoked. |
| 403 | The account's plan does not include API access (Pro and Business do). |
| 404 | No template with that id belongs to your account. |

Every error body is `{ "error": "message" }`.

## Example request

```bash
curl -X DELETE https://api.signwithsigil.com/v1/templates/7DXW69YJ \
  -H "Authorization: Bearer $SIGIL_API_KEY"
```
