---
title: Delete a token
description: Delete an API token from InfluxDB using the InfluxDB UI or the influx CLI.
url: https://docs.influxdata.com/influxdb3/cloud-serverless/admin/tokens/delete-token/
estimated_tokens: 1456
product: InfluxDB Cloud Serverless
version: cloud-serverless
---

# Delete a token

Delete API tokens using the InfluxDB user interface (UI), `influx` command line interface (CLI), or InfluxDB API. Once deleted, all users and external integrations using the API token will no longer have access to your InfluxDB instance.

<!-- Tabbed content: Select one of the following options -->

**InfluxDB UI:**

## Delete tokens in the InfluxDB UI

1. In the navigation menu on the left, select **Load Data** > **API Tokens**.
    
    Load Data
    
2. Find the token that you would like to delete.
    
3. Click the icon located far right of the token description.
    
4. Click **Confirm** to delete the token.

**influx CLI:**

## Delete a token using the influx CLI

Use the [`influx auth delete` command](/influxdb/v2/reference/cli/influx/auth/delete) to delete a token.

Provide the following flags:

-   `--token`: API token with permission to delete authorizations
-   `--id`: Authorization ID to delete (available in the output of `influx auth find`)

```sh
influx auth delete \
  --token API_TOKEN \
  --id AUTHORIZATION_ID
```

**InfluxDB API:**

## Delete a token using the InfluxDB API

Use the `/api/v2/authorizations` InfluxDB API endpoint to delete a token.

[DELETE https://cloud2.influxdata.com/api/v2/authorizations/{AUTH\_ID}](/influxdb/v2/api/authorizations-api-tokens/)

Include the following in your request:

-   **Headers**:
    -   **Authorization**: `Token API_TOKEN` (API token with the [`write: authorizations`](/influxdb3/cloud-serverless/api/authorizations-api-tokens/#operation/PostAuthorizations) permission)
    -   **Content-type**: `application/json`
-   **Path parameters**:
    -   **authID**: Authorization ID to delete

```sh
# Delete the first authorization listed for the user.
curl --request GET \
  https://cloud2.influxdata.com/api/v2/authorizations?user=user2 \
  --header "Authorization: Token API_TOKEN" \
  --header 'Content-type: application/json' \
| jq .authorizations[0].id \
| xargs -I authid curl --request DELETE \
  https://cloud2.influxdata.com/api/v2/authorizations/authid \
  --header "Authorization: Token API_TOKEN" \
  --header 'Content-type: application/json'
```

<!-- End tabbed content -->
