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

# ankra logout

> Revoke the login token and remove saved credentials

## ankra logout

Revoke the saved login token on the platform and remove the saved
credentials from \~/.ankra.yaml.

Revocation is best-effort: when the platform cannot be reached the local
credentials are still cleared, with a warning that the token may remain
valid until it expires. Use --local-only to skip the revocation call
entirely (for example on an air-gapped machine).

```bash theme={null}
ankra logout [flags]
```

**Flags**

| Flag           | Default | Description                                                        |
| -------------- | ------- | ------------------------------------------------------------------ |
| `--local-only` | `false` | clear saved credentials without revoking the token on the platform |
