---
title: influxctl database undelete
description: The influxctl database undelete command undeletes a previously deleted database in an InfluxDB cluster.
url: https://docs.influxdata.com/influxdb3/clustered/reference/cli/influxctl/database/undelete/
estimated_tokens: 410
product: InfluxDB Clustered
version: clustered
---

# influxctl database undelete

-   influxctl 2.10.2+

The `influxctl database undelete` command undeletes a previously deleted database in an InfluxDB cluster and restores the database with the same retention period, table, and column limits as when it was deleted.

The database name must match the name of the deleted database and **a new database with the same name cannot exist**.

## Usage

```bash
influxctl database undelete [flags] <DATABASE_NAME>
```

## Arguments

| Argument | Description |
| --- | --- |
| DATABASE_NAME | The name of the database to undelete |

## Flags

| Flag |  | Description |
| --- | --- | --- |
| -h | --help | Output command help |

*Also see [`influxctl` global flags](/influxdb3/clustered/reference/cli/influxctl/#global-flags).*
