diff --git a/content/influxdb3/cloud-dedicated/admin/databases/delete.md b/content/influxdb3/cloud-dedicated/admin/databases/delete.md index a20a7a5c05..8d21c3f710 100644 --- a/content/influxdb3/cloud-dedicated/admin/databases/delete.md +++ b/content/influxdb3/cloud-dedicated/admin/databases/delete.md @@ -24,6 +24,7 @@ list_code_example: | --header "Authorization: Bearer MANAGEMENT_TOKEN" ``` related: + - /influxdb3/cloud-dedicated/admin/databases/undelete/ - /influxdb3/cloud-dedicated/reference/cli/influxctl/database/delete/ - /influxdb3/cloud-dedicated/reference/api/ --- @@ -47,6 +48,13 @@ to delete a database from your {{< product-name omit=" Clustered" >}} cluster. > that granted access to the deleted database will also grant access to the new > database. +> [!Note] +> #### 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. + {{< tabs-wrapper >}} {{% tabs %}} [Admin UI](#) diff --git a/content/influxdb3/cloud-dedicated/admin/databases/undelete.md b/content/influxdb3/cloud-dedicated/admin/databases/undelete.md index 91ef14dcdb..1d928ba06a 100644 --- a/content/influxdb3/cloud-dedicated/admin/databases/undelete.md +++ b/content/influxdb3/cloud-dedicated/admin/databases/undelete.md @@ -1,7 +1,7 @@ --- title: Undelete a database description: > - Use the [`influxctl database undelete` command](/influxdb3/cloud-dedicated/reference/cli/influxctl/database/undelete/) + Use the Admin UI or the [`influxctl database undelete` command](/influxdb3/cloud-dedicated/reference/cli/influxctl/database/undelete/) to restore a previously deleted database in your {{< product-name omit=" Cluster" >}} cluster. menu: influxdb3_cloud_dedicated: @@ -17,7 +17,7 @@ related: - /influxdb3/cloud-dedicated/admin/tokens/database/create/ --- -Use the [`influxctl database undelete` command](/influxdb3/cloud-dedicated/reference/cli/influxctl/database/undelete/) +Use the Admin UI or the [`influxctl` CLI](/influxdb3/cloud-dedicated/reference/cli/influxctl/) to restore a previously deleted database in your {{< product-name omit=" Cluster" >}} cluster. > [!Important] @@ -37,7 +37,29 @@ table limits, and column limits as when it was deleted. > After this grace period, all Parquet files associated with the deleted database > are permanently removed and the database cannot be undeleted. -## Undelete a database using the influxctl CLI +{{< tabs-wrapper >}} +{{% tabs %}} +[Admin UI](#admin-ui) +[influxctl](#influxctl) +{{% /tabs %}} +{{% tab-content %}} +{{< admin-ui-access >}} + +In the database list, find the deleted database you want to restore. +Deleted databases are shown with a "Deleted" status indicator. +You can sort on column headers or use the **Search** field to find a specific database. + +1. In the options menu (three vertical dots to the right of the database), click **Restore Database**. The **Restore Database** dialog displays. +2. In the **Restore Database** dialog, review the database name and deletion date. +3. Click the **Restore Database** button to restore the database. +{{% /tab-content %}} +{{% tab-content %}} + +1. If you haven't already, [download and install the `influxctl` CLI](/influxdb3/cloud-dedicated/reference/cli/influxctl/#download-and-install-influxctl). +2. Use the [`influxctl database undelete` command](/influxdb3/cloud-dedicated/reference/cli/influxctl/database/undelete/) + to restore a deleted database. Provide the following: + + - The name of the deleted database to restore {{% code-placeholders "DATABASE_NAME" %}} ```sh @@ -49,6 +71,8 @@ Replace the following: - {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}: Name of the deleted database to restore +{{% /tab-content %}} +{{< /tabs-wrapper >}} ## Recreate tokens for the database