Back to Influxdb

Undelete

content/shared/influxctl/database/undelete.md

latest1.0 KB
Original Source

The influxctl database undelete command undeletes a previously deleted database in an {{% product-name omit=" Clustered" %}} cluster and restores the database with the same retention period, table, and column limits as when it was deleted.

[!Important] The database name must match the name of the deleted database and a new database with the same name cannot exist.

Usage

<!-- pytest.mark.skip -->
bash
influxctl database undelete [flags] <DATABASE_NAME>

Arguments

ArgumentDescription
DATABASE_NAMEThe name of the database to undelete

Flags

FlagDescription
-h--helpOutput command help

{{% caption %}} Also see influxctl global flags. {{% /caption %}}