> ## 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 destroy instance

Destroy an instance (irreversible, deletes data)

## Usage

```bash theme={null}
vastai destroy instance id [-h] [--api-key API_KEY] [--raw]
```

## Arguments

<ParamField path="id" type="integer" required>
  id of instance to delete
</ParamField>

## Description

Perfoms the same action as pressing the "DESTROY" button on the website at [https://console.vast.ai/instances/](https://console.vast.ai/instances/)
Example: vastai destroy instance 4242

## Examples

```bash theme={null}
vastai destroy instance <ID>
```

## 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`) |
