---
title: Delete a database
description: Use the Admin UI, the influxctl database delete command, or the Management HTTP API to delete a database from your InfluxDB Cloud Dedicated cluster. Provide the name of the database you want to delete.
url: https://docs.influxdata.com/influxdb3/cloud-dedicated/admin/databases/delete/
estimated_tokens: 2448
product: InfluxDB Cloud Dedicated
version: cloud-dedicated
---

# Delete a database

Use the Admin UI, the [`influxctl` CLI](/influxdb3/cloud-dedicated/reference/cli/influxctl/), or the [Management HTTP API](/influxdb3/cloud-dedicated/api/management/) to delete a database from your InfluxDB Cloud Dedicated cluster.

#### Wait before writing to a new database with the same name

After deleting a database from your InfluxDB Cloud Dedicated cluster, you can reuse the name to create a new database, but **wait two to three minutes** after deleting the previous database before writing to the new database to allow write caches to clear.

#### Tokens still grant access to databases with the same name

[Database tokens](/influxdb3/cloud-dedicated/admin/tokens/database/) are associated to databases by name. If you create a new database with the same name, tokens that granted access to the deleted database will also grant access to the new database.

#### Deleted databases may be able to be restored

Deleted databases may be able to be [restored](/influxdb3/cloud-dedicated/admin/databases/undelete/) within approximately 7 days of deletion, depending on when cleanup jobs run. After the cleanup job runs, the database and its data are permanently removed.

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

**Admin UI:**

The InfluxDB Cloud Dedicated administrative UI includes a portal for managing databases.

1. To access the InfluxDB Cloud Dedicated Admin UI, visit the following URL in your browser:
    
    [https://console.influxdata.com](https://console.influxdata.com)
    
2. Use the credentials provided by InfluxData to log into the Admin UI. If you don’t have login credentials, [contact InfluxData support](https://support.influxdata.com).
    
3. In the database list, find the database you want to delete. You can sort on column headers or use the **Search** field to find a specific database.
    
4. Click the options button (three vertical dots) to the right of the database you want to delete. The options menu displays.
    
5. In the options menu, click **Delete Database**. The **Delete Database** dialog displays.
    
6. In the **Delete Database** dialog, check the box to confirm that you “understand the risk of this action”.
    
7. In the **Enter Database Name to Delete** field, type the name of the database to confirm deletion.
    
8. Click the **Delete Database** button to delete the database.
    

![Create database dialog](/img/influxdb3/cloud-dedicated-admin-ui-delete-database.png)

**influxctl:**

1. If you haven’t already, [download and install the `influxctl` CLI](/influxdb3/cloud-dedicated/reference/cli/influxctl/#download-and-install-influxctl), and then [configure an `influxctl` connection profile](/influxdb3/cloud-dedicated/reference/cli/influxctl/#configure-connection-profiles) for your cluster.
    
2. In your terminal, run the `influxctl database delete` command and provide the following:
    
    -   The name of the database to delete
3. Confirm that you want to delete the database.
    

```sh
influxctl database delete DATABASE_NAME
```

**Management API:**

*This example uses [cURL](https://curl.se/) to send a Management HTTP API request, but you can use any HTTP client.*

1. If you haven’t already, follow the instructions to [install cURL](https://everything.curl.dev/install/index.html) for your system.
    
2. In your terminal, use cURL to send a request to the following InfluxDB Cloud Dedicated endpoint:
    
    [DELETE https://console.influxdata.com/api/v0/accounts/ACCOUNT\_ID/clusters/CLUSTER\_ID/databases/DATABASE\_NAME](/influxdb3/cloud-dedicated/api/databases/#operation/DeleteClusterDatabase)
    
    In the URL, provide the following:
    
    -   `ACCOUNT_ID`: The ID of the [account](/influxdb3/cloud-dedicated/get-started/setup/#request-an-influxdb-cloud-dedicated-cluster) that the cluster belongs to *(see how to [list cluster details](/influxdb3/cloud-dedicated/admin/clusters/list/#detailed-output-in-json))*.
    -   `CLUSTER_ID`: The ID of the [cluster](/influxdb3/cloud-dedicated/get-started/setup/#request-an-influxdb-cloud-dedicated-cluster) that you want to manage *(see how to [list cluster details](/influxdb3/cloud-dedicated/admin/clusters/list/#detailed-output-in-json))*.
    -   `DATABASE_NAME`: The name of the [database](/influxdb3/cloud-dedicated/admin/databases/) that you want to delete *(see how to [list databases](/influxdb3/cloud-dedicated/admin/databases/list/))*.
    
    Provide the following request headers:
    
    -   `Accept: application/json` to ensure the response body is JSON content
    -   `Authorization: Bearer` and a [Management API token](/influxdb3/cloud-dedicated/admin/tokens/management/) for your cluster *(see how to [create a management token](/influxdb3/cloud-dedicated/admin/tokens/management/) for Management API requests)*.
    
    Specify the `DELETE` request method.
    

The following example shows how to use the Management API to delete a database:

```sh
curl \
   --location "https://console.influxdata.com/api/v0/accounts/ACCOUNT_ID/clusters/CLUSTER_ID/databases/DATABASE_NAME" \
   --request DELETE \
   --header "Accept: application/json" \
   --header "Authorization: Bearer MANAGEMENT_TOKEN"
```

Replace the following in your request:

-   `ACCOUNT_ID`: the ID of the InfluxDB Cloud Dedicated [account](/influxdb3/cloud-dedicated/get-started/setup/#request-an-influxdb-cloud-dedicated-cluster) to create the database for
-   `CLUSTER_ID`: the ID of the InfluxDB Cloud Dedicated [cluster](/influxdb3/cloud-dedicated/get-started/setup/#request-an-influxdb-cloud-dedicated-cluster) to create the database for
-   `MANAGEMENT TOKEN`: a [management token](/influxdb3/cloud-dedicated/admin/tokens/management/) for your InfluxDB Cloud Dedicated cluster
-   `DATABASE_NAME`: your InfluxDB Cloud Dedicated [database](/influxdb3/cloud-dedicated/admin/databases/)

<!-- End tabbed content -->

#### Related

-   [Undelete a database](/influxdb3/cloud-dedicated/admin/databases/undelete/)
-   [influxctl database delete](/influxdb3/cloud-dedicated/reference/cli/influxctl/database/delete/)
