Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions content/influxdb3/cloud-dedicated/admin/databases/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
---
Expand All @@ -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](#)
Expand Down
30 changes: 27 additions & 3 deletions content/influxdb3/cloud-dedicated/admin/databases/undelete.md
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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]
Expand All @@ -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 >}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.


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
Expand All @@ -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

Expand Down
Loading