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

# Archive template

`DELETE /api/templates/{id}`

## Request

- Base URL: `https://api.zvid.io`
- URL: `https://api.zvid.io/api/templates/{id}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Archive the owned template. Existing outputs remain separate resources.

## Path parameters

- `id` string, required

## Response `200`

Successful response

- object
  - `archived` boolean, required
  - `id` string, required

## Other responses

- `400`: Invalid input or semantic validation error
- `401`: Missing or invalid credentials
- `404`: Not found for this account
- `500`: Server error

---

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