---
title: "Delete a template by id or alias"
method: DELETE
path: "/templates/{id}"
tags: ["Templates"]
---

# Delete a template by id or alias

`DELETE /templates/{id}`

## Request

- Base URL: `https://api.groundmail.dev`
- URL: `https://api.groundmail.dev/templates/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Response `200`

Template deleted

- object
  - `ok` boolean, required

## Other responses

- `401`: Missing or invalid API key
- `404`: Template not found

---

[API](https://skmtc.dev/groundmail/apis/groundmail-api.md) · [All operations](https://skmtc.dev/groundmail/apis/groundmail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/groundmail/apis/groundmail-api/revisions/479821c9fecf?raw)
