---
title: Delete a bucket
description: Delete a bucket from InfluxDB using the InfluxDB UI or the influx CLI
url: https://docs.influxdata.com/influxdb/v2/admin/buckets/delete-bucket/
estimated_tokens: 849
product: InfluxDB OSS v2
version: v2
---

# Delete a bucket

This page documents an earlier version of InfluxDB OSS. [InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a copy of the database file doesn’t expose usable tokens. Existing tokens are hashed on first startup and the original strings can’t be recovered afterward — **capture any plaintext tokens you still need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

Use the InfluxDB user interface (UI) or the `influx` command line interface (CLI) to delete a bucket.

## Delete a bucket in the InfluxDB UI

1. In the navigation menu on the left, select **Data (Load Data)** > **Buckets**.

Load Data

2. Hover over the bucket you would like to delete.
3. Click the icon located far right of the bucket name.
4. Click **Delete** to delete the bucket.

## Delete a bucket using the influx CLI

Use the [`influx bucket delete` command](/influxdb/v2/reference/cli/influx/bucket/delete) to delete a bucket a bucket by name or ID.

### Delete a bucket by name

**To delete a bucket by name, you need:**

-   Bucket name
-   Bucket’s organization name or ID

```sh
# Syntax
influx bucket delete -n <bucket-name> -o <org-name>

# Example
influx bucket delete -n my-bucket -o my-org
```

### Delete a bucket by ID

**To delete a bucket by ID, you need:**

-   Bucket ID *(provided in the output of `influx bucket list`)*

```sh
# Syntax
influx bucket delete -i <bucket-id>

# Example
influx bucket delete -i 034ad714fdd6f000
```
