Back to Influxdb

Revoke a management token

content/influxdb3/cloud-dedicated/admin/tokens/management/revoke.md

latest2.2 KB
Original Source

Use the Admin UI or the influxctl management revoke command to revoke a management token and remove all access associated with the token.

{{< tabs-wrapper >}} {{% tabs %}} Admin UI influxctl {{% /tabs %}} {{% tab-content %}}

<!------------------------------BEGIN ADMIN UI ------------------------------>

The {{% product-name %}} administrative UI includes a portal for managing management tokens.

{{< admin-ui-access >}}

  1. Search for the token or use the sort button and column headers to sort the token list and find the token you want to revoke.

  2. Click the options button (three vertical dots) to the right of the token you want to revoke. The options menu displays.

  3. In the options menu, click Revoke Token.

  4. In the Revoke Management Token dialog, check the box to confirm you "Understand the risk of this action".

  5. Click the Revoke Token button to revoke the token. The token is revoked and filtered from the list of active tokens. {{% /tab-content %}} {{% tab-content %}}

  6. If you haven't already, download and install the influxctl CLI.

  7. Run the influxctl management list command to output tokens with their IDs. Copy the ID of the token you want to delete.

    sh
    influxctl management list
    
  8. Run the influxctl management revoke command and provide the following:

    • Optional: --force flag to skip command confirmation
    • Token ID to delete
  9. Confirm that you want to delete the token.

{{% code-placeholders "TOKEN_ID" %}}

sh
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. {{% /tab-content %}} {{% /tabs-wrapper %}}

[!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.