---
title: "ktm variables groups delete"
description: "Delete a variable group; refuses if non-empty unless --force"
sidebarTitle: "delete"
lastUpdated: "2026-09-23"
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

{/* GENERATED FILE: do not edit by hand. Regenerate with: node scripts/generate.mjs */}

Delete a variable group; refuses if non-empty unless --force

## Usage

```bash
ktm variables groups delete <id> [flags]
```

## Examples

```bash
ktm variables groups delete 42           # refuses if group has variables
ktm variables groups delete 42 --force   # bypass the non-empty check
```

## Arguments

| Argument | Required |
| --- | --- |
| `id` | Yes |

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--force` | boolean |  | Bypass the non-empty safety check |

## Details

Safe by default: refuses if the group still contains variables, listing them
and suggesting --force to override.

## Related

- [`ktm variables groups`](/cli/commands/variables/groups)

<Note>
  Global flags (`--output`, `--debug`, `--host`, …) apply to every command. See the [command reference overview](/cli/commands/overview).
</Note>

## What's next?

<Columns cols={2}>
  <Card title="All commands" icon="terminal" href="/cli/commands/overview">
    Browse the full CLI reference.
  </Card>
  <Card title="Get started" icon="rocket" href="/cli/getting-started">
    Install the CLI and authenticate.
  </Card>
</Columns>
