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

# Delete Email Template

> Permanently remove a saved template override — reverts that type back to Khaime's default.

# Delete Email Template

<Warning>
  This is a **hard delete** — there is no soft-delete, undo, or recovery. Once removed, that template type immediately falls back to Khaime's built-in default (see [Get Default Template](/api-reference/b2b/get-default-email-template)) with no record of what the deleted override contained.
</Warning>

## Path Parameters

<ParamField path="id" type="integer" required>
  The template's numeric ID — same identifier space as [Get Email Template](/api-reference/b2b/get-email-template), not the `type` string.
</ParamField>

## Response

```json theme={null}
{
  "success": true,
  "message": "Email template deleted successfully. Default template will be used.",
  "data": null
}
```

## Error Codes

| Status | Error Code           | Cause                                              |
| ------ | -------------------- | -------------------------------------------------- |
| `404`  | `RESOURCE_NOT_FOUND` | No template with that ID belongs to your business. |

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://api.khaime.com/api/v1/partner/email-templates/12 \
    -H "X-API-Key: pk_sandbox_your_key"
  ```
</RequestExample>
