content/shared/influxdb-v2/admin/buckets/delete-bucket.md
Use the InfluxDB user interface (UI) or the influx command line interface (CLI)
to delete a bucket.
{{% show-in "v2" %}}
{{< nav-icon "data" >}}
{{% show-in "cloud,cloud-serverless" %}}
{{< nav-icon "data" >}}
{{% /show-in %}}
Use the influx bucket delete command
to delete a bucket a bucket by name or ID.
To delete a bucket by name, you need:
# Syntax
influx bucket delete -n <bucket-name> -o <org-name>
# Example
influx bucket delete -n my-bucket -o my-org
To delete a bucket by ID, you need:
influx bucket list)# Syntax
influx bucket delete -i <bucket-id>
# Example
influx bucket delete -i 034ad714fdd6f000