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

# ultra unlink

> Unlink this gateway from its workspace

Unlink this Ultra gateway from its workspace. After unlinking, the gateway stops syncing with Ultra Hub. Local data and configuration are preserved.

## Usage

```bash theme={null}
ultra unlink [flags]
```

## Flags

| Flag      | Short | Default | Description              |
| --------- | ----- | ------- | ------------------------ |
| `--force` | `-f`  | `false` | Skip confirmation prompt |

## Examples

```bash theme={null}
# Unlink interactively (with confirmation)
ultra unlink

# Unlink without confirmation
ultra unlink --force
```

## What Happens

1. Notifies Hub that this gateway is disconnecting
2. Clears gateway ID and workspace ID from local config
3. Preserves authentication tokens (for future re-linking)
4. Keeps all local data intact

If the Hub notification fails (e.g., network error), the local cleanup still proceeds.

## Re-Linking

After unlinking, you can link to the same or a different workspace:

```bash theme={null}
ultra link
```
