> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# vastai delete template

Delete a Template

## Usage

```bash theme={null}
vastai delete template --template-id <id>
```

## Options

<ParamField path="--template-id" type="integer">
  Template ID of Template to Delete
</ParamField>

## Description

Deleting a template only removes the user's relationship to the template; it is not destroyed.

## Examples

```bash theme={null}
vastai delete template --template-id 12345
```

## Global Options

The following options are available for all commands:

| Option          | Description                                           |
| --------------- | ----------------------------------------------------- |
| `--url URL`     | Server REST API URL                                   |
| `--retry N`     | Retry limit                                           |
| `--raw`         | Output machine-readable JSON                          |
| `--explain`     | Verbose explanation of API calls                      |
| `--api-key KEY` | API key (defaults to `~/.config/vastai/vast_api_key`) |
