## Delete Template

`print_mail.templates.delete(strid)  -> TemplateDeleteResponse`

**delete** `/print-mail/v1/templates/{id}`

Delete a template by ID. Note that this operation cannot be undone.

### Parameters

- `id: str`

### Returns

- `class TemplateDeleteResponse: …`

  - `id: str`

    A unique ID prefixed with template_

  - `deleted: Literal[true]`

    - `true`

  - `object: Literal["template"]`

    Always `template`.

    - `"template"`

### Example

```python
import os
from postgrid import PostGrid

client = PostGrid(
    print_mail_api_key=os.environ.get("POSTGRID_PRINT_MAIL_API_KEY"),  # This is the default and can be omitted
)
template = client.print_mail.templates.delete(
    "id",
)
print(template.id)
```

#### Response

```json
{
  "id": "template_sqF12lZ1VlBb",
  "deleted": true,
  "object": "template"
}
```
