> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corti.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# template.deleted

> Emitted when a template is deleted.

## Event Properties

| Field          | Value                |
| -------------- | -------------------- |
| `event`        | `"template.deleted"` |
| `confidential` | `boolean`            |
| `payload`      | `object`             |

<Tabs>
  <Tab title="Public Payload">
    | Field                   | Type                                  | Description                                                                                |
    | ----------------------- | ------------------------------------- | ------------------------------------------------------------------------------------------ |
    | `id`                    | `string`                              | Identifier of the deleted template                                                         |
    | `templateType`          | `"legacy" \| "personal" \| undefined` | Type of template: "legacy" for old custom templates, "personal" for new personal templates |
    | `source`                | `"template_detail" \| undefined`      | -                                                                                          |
    | `copiedFromTemplateId`  | `string \| undefined`                 | -                                                                                          |
    | `hadCustomisedSections` | `boolean \| undefined`                | -                                                                                          |

    #### Example

    ```json theme={null}
    {
      "event": "template.deleted",
      "confidential": false,
      "payload": {
        "id": "template_3",
        "templateType": "legacy"
      }
    }
    ```
  </Tab>

  <Tab title="Confidential Payload">
    | Field          | Type                                  | Description                                                                                |
    | -------------- | ------------------------------------- | ------------------------------------------------------------------------------------------ |
    | `id`           | `string`                              | Identifier of the deleted template                                                         |
    | `templateType` | `"legacy" \| "personal" \| undefined` | Type of template: "legacy" for old custom templates, "personal" for new personal templates |

    #### Example

    ```json theme={null}
    {
      "event": "template.deleted",
      "confidential": true,
      "payload": {
        "id": "template_3",
        "templateType": "legacy"
      }
    }
    ```
  </Tab>
</Tabs>
