---
title: "delete template"
method: DELETE
path: "/api/v0/template/"
tags: ["Templates"]
---

# delete template

`DELETE /api/v0/template/`

Deletes an existing template.

Pass the template's numeric `id` (not `hash_id`) in the request body.

For detailed usage, see [Creating and Using Templates with API](/api-reference/creating-and-using-templates-with-api).

CLI Usage: `vastai delete template --template-id <id>`

## Request body

- object
  - `template_id` integer, required — Numeric ID of the template to delete (not hash_id)

## Response `200`

Template deleted successfully

- object
  - `success` boolean

## Other responses

- `401` — Unauthorized - invalid or missing API key
- `404` — Template not found

---

[API](https://skmtc.net/vast/apis/vast-ai-api.md) · [All operations](https://skmtc.net/vast/apis/vast-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vast/vast-ai-api/revisions/4ed14f79f796/schema)
