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

# Withdraw a template

`DELETE /templates/{id}`

## Request

- Base URL: `https://api.varg.ai/v2`
- URL: `https://api.varg.ai/v2/templates/{id}`
- Auth: HTTP bearer

Deletes your own template and its frozen document copy. Requires a key
bound to a user.

## Response `200`

Template deleted

- TemplateDeleted
  - `deleted` boolean
  - `id` string, uuid

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key / JWT
- `403`: The template belongs to another user
- `404`: Template or document not found
- `422`: The key is not bound to a user account

## Changes

- **2026-10-20** `43bcf5ea398d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/varg/apis/varg-api/changes/templates/:id/delete.md)

---

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