Back to Influxdb

Syntax

content/shared/influxdb3-cli/delete/token.md

latest1.9 KB
Original Source

The influxdb3 delete token command deletes an authorization token from the {{% product-name %}} server.

Usage

bash
# Syntax
influxdb3 delete token [OPTIONS]

Options

OptionDescriptionDefaultEnvironment
--token({{< req >}}) The token for authentication with the {{% product-name %}} serverINFLUXDB3_AUTH_TOKEN
--token-name({{< req >}}) The name of the token to be deleted
--tls-caPath to a custom TLS certificate authority (for self-signed or internal certificates)INFLUXDB3_TLS_CA
--tls-no-verifyDisable TLS certificate verification (Not recommended in production, useful for self-signed certificates)INFLUXDB3_TLS_NO_VERIFY
-h, --helpPrint help information
--help-allPrint detailed help information

Examples

In the examples below, replace the following:

  • {{% code-placeholder-key %}}AUTH_TOKEN{{% /code-placeholder-key %}}: Authentication token with permission to delete tokens
  • {{% code-placeholder-key %}}TOKEN_TO_DELETE{{% /code-placeholder-key %}}: Name of the token to delete

Delete a token by name

bash
influxdb3 delete token --token-name TOKEN_TO_DELETE --token AUTH_TOKEN

Show help for the command

bash
influxdb3 delete token --help