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

# nsc token revoke

Revoke a token.

`nsc token revoke` immediately revokes a token, preventing it from being used for further
authentication. Once revoked, a token cannot be reactivated and any attempts to use it will fail.

Revoking tokens is important for security best practices, especially when:

* A token is no longer needed
* A token may have been compromised
* Access needs to be removed immediately
* Rotating credentials as part of regular security maintenance

## Usage

```bash theme={null}
nsc token revoke --token_id <id>
```

### Example

```bash theme={null}
nsc token revoke --token_id tok_abc123def456
```

```text nocopy Output theme={null}
Successfully revoked token tok_abc123def456
```

## Options

<h3 id="--token_id-id">
  \--token\_id \<id>
</h3>

The token ID to revoke. Required.
