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

# insights category delete

> Delete an intent category

Delete an intent category. Intents linked to the category are unlinked but not deleted.

## Usage

```bash theme={null}
alpic insights category delete
```

Prompts for the category to delete and asks for confirmation.

## Extended Usage

Select the category explicitly:

```bash theme={null}
alpic insights category delete --category-id <categoryId>
```

Delete in automation:

```bash theme={null}
alpic insights category delete \
  --environment-id <environmentId> \
  --category-id <categoryId> \
  --non-interactive
```

<Info>`--category-id` is required in non-interactive mode, and the confirmation prompt is skipped.</Info>

## Options

| Flag | Description | Default |
| - | - | - |
| `--environment-id` | Select an environment by ID | |
| `--environment-name` | Select an environment by name | |
| `--project-id` | Provide the project context by ID | |
| `--project-name` | Provide the project context by name | |
| `--category-id` | The ID of the intent category | |
| `--non-interactive` | Skip interactive prompts | |

<Tip>When the current directory is linked to an environment, the environment and project flags can be omitted.</Tip>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.