---
title: "Delete a template"
description: "The template and every version of it. Mail already sent from it is untouched."
url: "https://openemail.uk/docs/api/templates/delete"
area: "API"
category: "Mailbox"
---

# Delete a template

The template and every version of it. Mail already sent from it is untouched.

`DELETE /templates/{id}`

## DELETE /templates/{id}

The template and every version of it. Mail already sent from it is untouched.

## Example

Needs `templates:write`.

**curl**

```
curl -X DELETE "$OE/templates/order-shipped" -H "$AUTH"
```

**Response**

```
{ "object": "template", "id": "tpl_9c1f0a4b7e05d3862c1f0a44", "deleted": true }
```

> Anything still sending against this id starts failing with a 404 `resource_not_found`. Archive rather than delete when you are not sure who points at it.
