---
title: "Delete a template"
method: POST
path: "/api/templates.delete"
---

# Delete a template

`POST /api/templates.delete`

Soft-deletes a template. The template will be marked as deleted but not removed from the database.

## Request body

- DeleteTemplateRequest
  - `workspace_id` string, required — The ID of the workspace
  - `id` string, required — ID of the template to delete

## Response `200`

Template deleted successfully

- object
  - `success` boolean

## Other responses

- `400` — Bad request - validation failed
- `401` — Unauthorized - invalid or missing authentication token
- `404` — Template not found
- `500` — Internal server error

## Changes

- **2025-11-14** `940c5636d0b4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/pierre-b/apis/notifuse-api/changes/api/templates.delete/post.md)

---

[API](https://skmtc.dev/pierre-b/apis/notifuse-api.md) · [All operations](https://skmtc.dev/pierre-b/apis/notifuse-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pierre-b/notifuse-api/revisions/d26605f2fc47/schema)
