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

> Unlink an intent category from intents

Remove an intent category from one or more intents. Intents that do not carry the category are ignored.

## Usage

```bash theme={null}
alpic insights category unlink --intent-id <intentId>
```

Prompts for the category to unlink in the environment from the local `.alpic` configuration.

## Extended Usage

Unlink several intents from an explicit category:

```bash theme={null}
alpic insights category unlink \
  --category-id <categoryId> \
  --intent-id <intentId> \
  --intent-id <intentId>
```

Unlink in automation:

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

<Note>`--category-id` is required in non-interactive mode.</Note>

## 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              |         |
| `--intent-id`        | The ID of an intent to unlink. Repeatable. |         |
| `--non-interactive`  | Skip interactive prompts                   |         |

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