2.0 KiB
2.0 KiB
title | description | menu | weight | ||||
---|---|---|---|---|---|---|---|
influxctl token delete | The `influxctl token delete` command deletes a database token from an InfluxDB cluster and revokes all permissions associated with the token. |
|
301 |
The influxctl token delete
command deletes a database token from an InfluxDB
cluster and revokes all permissions associated with the token.
Usage
influxctl token delete <TOKEN_ID> [<TOKEN_ID_N>...]
{{% warn %}}
Deleting a token is immediate and cannot be undone
Deleting a database token is a destructive action that takes place immediately and cannot be undone.
Rotate deleted tokens
After deleting a database token, any clients using the deleted token need to be updated with a new database token to continue to interact with your InfluxDB cluster. {{% /warn %}}
Arguments
Argument | Description |
---|---|
TOKEN_ID | Database token ID to delete |
Flags
Flag | Description | |
---|---|---|
--force |
Do not prompt for confirmation to delete (default is false) | |
-h |
--help |
Output command help |
{{% caption %}}
Also see influxctl
global flags.
{{% /caption %}}
Examples
In the examples below, replace the following:
- {{% code-placeholder-key %}}
TOKEN_ID
{{% /code-placeholder-key %}}: token ID to delete
Delete a database token
{{% code-placeholders "TOKEN_ID" %}}
influxctl token delete TOKEN_ID
{{% /code-placeholders %}}
Delete multiple database tokens
{{% code-placeholders "TOKEN_ID_\d{1}" %}}
influxctl token delete TOKEN_ID_1 TOKEN_ID_2
{{% /code-placeholders %}}