---
title: "Delete templates (bulk)"
method: POST
path: "/api/v2/templates/delete"
tags: ["Templates"]
---

# Delete templates (bulk)

`POST /api/v2/templates/delete`

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Templates/deleteTemplatesBulk" target="_blank">Try in sandbox</a><br>Delete templates by given IDs or delete all templates.

## Request body

- object
  - `ids` string — Entity ID(s), separated by comma.
  - `all` boolean — Entity ID(s), separated by comma.

## Response `204`

Request executed with success.

## Other responses

- `400` — Bad request.
- `401` — Unauthorized request.
- `404` — Request data not found.

---

[API](https://skmtc.net/textmagic/apis/textmagic-api.md) · [All operations](https://skmtc.net/textmagic/apis/textmagic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textmagic/textmagic-api/revisions/3e4029d19684/schema)
