# Template API - Delete

Use this endpoint to delete a template from your account.

---

## Endpoint

```
DELETE https://e1.envoke.com/v2/templates/{ID}
```

Replace `{ID}` with the Envoke template ID you want to delete. Authentication is via HTTP Basic Auth using your API ID and API Key.

---

## Important

**Deletion is permanent from an API perspective** — a deleted template is immediately removed from all API responses and cannot be recovered via the API.

Internally, templates are soft-deleted: the record is archived rather than physically removed, so the underlying data may be retained temporarily during cleanup. However, you should treat deletion as irreversible.

---

## Response

On success:

```json
{
  "success": true,
  "result_text": "Deleted",
  "result_data": []
}
```

If the template ID is not found:

```json
{
  "success": false,
  "result_text": "Validation failed, see 'result_data' -> 'errors'",
  "result_data": { "errors": ["Item with id '42' not found"] }
}
```

---

## Example

```bash
curl -X DELETE -gs \
  -u "$API_ID:$API_KEY" \
  "https://e1.envoke.com/v2/templates/42"
```

Replace `42` with the ID of the template you want to delete, and substitute your actual API ID and API Key.

---

*Note: The curl examples above are formatted for readability. All requests must use properly encoded URLs.*

*Full reference, OpenAPI description, and Postman collection: [developers.envoke.com](https://developers.envoke.com).*
