---
title: "Delete a template"
method: DELETE
path: "/api/v1/templates/{id}"
tags: ["Template Management"]
---

# Delete a template

`DELETE /api/v1/templates/{id}`

## Request

- Base URL: `https://api.imagestep.dev`
- URL: `https://api.imagestep.dev/api/v1/templates/{id}`
- Auth: API key in header `Authorization`

Deletes the template and every version of it. A render job already rendering keeps the bytes it was handed; one still queued behind the account's other jobs fails unstarted (`invalid_state`). Built-in ids are 403.

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Response `204`

Deleted; no body

## Other responses

- `403`: `forbidden` — a built-in template
- `404`: `not_found` on `templateId` — no such template, or it is not yours
- `409`: Conflict — `error.code` is `idempotency_key_reuse` (the key already means a different request) or `request_in_progress` (the first request under this key has not settled yet; retryable).
- `429`: Rate limited — `error.code` is `rate_limited` and `retryable` is true. `Retry-After` says how many seconds to wait.

---

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