---
title: "Delete templates in bulk"
method: DELETE
path: "/api/v1/templates"
tags: ["Template"]
---

# Delete templates in bulk

`DELETE /api/v1/templates`

Permanently deletes one or more templates identified by their identifiers. Each template must be archived and have no page dependencies (no pages referencing it). The user must have Edit permissions. Returns a bulk result with success count and details of any failures.

## Response `200`

Bulk delete operation completed. Check the response body for individual success/failure details.

- ResponseEntityBulkResultView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` BulkResultView
    - `successCount` integer
    - `skippedCount` integer
    - `fails` FailedResultView[]
      - `element` string
      - `errorMessage` string
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Request body is empty or not a valid list of identifiers
- `401` — Authentication required

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
