1.7 KiB
1.7 KiB
title | description | menu | weight | related | list_code_example | |||||
---|---|---|---|---|---|---|---|---|---|---|
Revoke a management token | Use the [`influxctl management revoke` command](/influxdb3/clustered/reference/cli/influxctl/management/revoke/) to revoke a management token and remove all access associated with the token. Provide the ID of the management token you want to revoke. |
|
203 |
|
```sh influxctl management revoke <TOKEN_ID> ``` |
Use the influxctl management revoke
command
to revoke a management token and remove all access associated with the token.
-
If you haven't already, download and install the
influxctl
CLI. -
Run the
influxctl management list
command to output tokens with their IDs. Copy the ID of the token you want to delete.influxctl management list
-
Run the
influxctl management revoke
command and provide the following:- Optional:
--force
flag to skip command confirmation - Token ID to delete
- Optional:
-
Confirm that you want to delete the token.
{{% code-placeholders "TOKEN_ID" %}}
influxctl management revoke --force TOKEN_ID
{{% /code-placeholders %}}
Replace {{% code-placeholder-key %}}TOKEN_ID
{{% /code-placeholder-key %}} with
the ID of the token you want to revoke.
{{% note %}}
Revoked tokens are included when listing management tokens
Revoked tokens still appear when listing management tokens, but they are no longer valid for any operations. {{% /note %}}