---
title: "Archive template"
method: DELETE
path: "/v4/templates/{templateId}"
tags: ["Templates"]
---

# Archive template

`DELETE /v4/templates/{templateId}`

## Request

- Base URL: `https://api.kadoa.com`
- URL: `https://api.kadoa.com/v4/templates/{templateId}`
- Auth: API key in header `x-api-key`

Soft-delete (archive) a template and cascade-unlink any workflows that referenced it.

## Path parameters

- `templateId` string, uuid, required

## Response `200`

200

- TemplateArchivedResponse: Response for template archival
  - `error` false, required: Error flag (always false on success)
  - `success` true, required: Success flag
  - `message` string, required: Archive confirmation message
  - `unlinkedWorkflowCount` integer, required: Number of workflows unlinked by this archive

## Other responses

- `401`: 401
- `404`: 404
- `500`: 500

---

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