---
title: "Delete an email template"
method: DELETE
path: "/templates/{template_id}"
tags: ["Template"]
---

# Delete an email template

`DELETE /templates/{template_id}`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/templates/{template_id}`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/templates/:template_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete an email template.

## Path parameters

- `template_id` integer, required: ID of the template to delete.

## Query parameters

- `tenant_id` integer
- `cookie_name` string, nullable

## Response `204`

Successful Response

## Other responses

- `401`: Missing or invalid authentication.
- `403`: Admin privileges required.
- `404`: No email template exists with the given id.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
