## Delete Session

`print_mail.template_editor_sessions.delete(strid)  -> TemplateEditorSessionDeleteResponse`

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

Delete a Template Editor Session by ID.

### Parameters

- `id: str`

### Returns

- `class TemplateEditorSessionDeleteResponse: …`

  - `id: str`

    A unique ID prefixed with `template_editor_session_`.

  - `deleted: Literal[true]`

    - `true`

  - `object: Literal["template_editor_session"]`

    Always `template_editor_session`.

    - `"template_editor_session"`

### 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_editor_session = client.print_mail.template_editor_sessions.delete(
    "id",
)
print(template_editor_session.id)
```

#### Response

```json
{
  "id": "template_editor_session_vmb3aXRJFzHb4oNRP2XMUZiTTBDtC91CSgQeqUrQfhSqq5P9wAGpmX5UkftueTubMN",
  "object": "template_editor_session",
  "deleted": true
}
```
