> ## 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 workergroup

Delete a workergroup group

## Usage

```bash theme={null}
vastai delete workergroup ID
```

## Arguments

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

## Description

Note that deleting a workergroup doesn't automatically destroy all the instances that are associated with your workergroup.
Example: vastai delete workergroup 4242

## Examples

```bash theme={null}
vastai delete workergroup <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`) |
