# Delete a Word template

https://radiologydictation.com/docs/delete-v1-document-templates-template-id

```http
DELETE /v1/document-templates/{template_id}
```

Delete a template that is no longer needed. Send its id in the path and its current revision as the expected_revision query parameter. A successful response is 204 with no body.

A 409 means the template changed after you read it. Read the current version and confirm that deletion is still intended before retrying. New generations cannot use a deleted template; completed Word files remain available for identical retries until their recovery window ends.

## Authentication

Create a named API key in your workspace’s API keys tab, then send it in the Authorization header on each API request. Your key connects the integration to that workspace’s saved settings and Word templates. Signing into the website does not replace this header in an API integration.

```http
Authorization: Bearer <API_KEY>
```

Keep the key in your application’s server-side secret configuration. It is shown only once when created, so save it securely then. Do not place it in browser code, logs, version control, or a prompt sent to your coding agent. You can revoke an integration’s key from the workspace without changing the other keys.

## Parameters

| Name | Type | Required | Constraints | Description |
| --- | --- | --- | --- | --- |
| template_id | path: string | Yes | pattern="^[a-f0-9]{32}$" |  |
| expected_revision | query: integer | Yes | minimum=1 |  |

## Example

```bash
BASE_URL=https://radiologydictation.com

curl --request DELETE "$BASE_URL/v1/document-templates/$TEMPLATE_ID?expected_revision=1" \
  --header "Authorization: Bearer $API_KEY"
```

## Responses

| Status | Description | Type |
| --- | --- | --- |
| 204 | Successful Response |  |
| 401 | Invalid or missing API key | object · application/json |
| 429 | Too many attempts. Please try again later. | object · application/json |
| 503 | Service is unavailable. Please try again. | object · application/json |
| 404 | Template not found. | object · application/json |
| 409 | Template changed. Reload it before saving. | object · application/json |
| 422 | Invalid Word template. | object · application/json |

### Response headers · 429

| Header | Type | Description |
| --- | --- | --- |
| Retry-After | string |  |
