# rpk cluster partitions unsafe-recover

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [streaming-full.txt](https://docs.redpanda.com/streaming-full.txt)

---
title: rpk cluster partitions unsafe-recover
latest-operator-version: v26.1.4
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "true"
page-eol-date: April 30, 2025
latest-console-tag: v3.7.3
latest-connect-version: 4.93.0
docname: rpk/rpk-cluster/rpk-cluster-partitions-unsafe-recover
page-component-name: streaming
page-version: "24.1"
page-component-version: "24.1"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-cluster/rpk-cluster-partitions-unsafe-recover.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/v/24.1/modules/reference/pages/rpk/rpk-cluster/rpk-cluster-partitions-unsafe-recover.adoc
page-git-created-date: "2023-12-22"
page-git-modified-date: "2024-04-30"
support-status: past end-of-life
---

<!-- Source: https://docs.redpanda.com/streaming/24.1/reference/rpk/rpk-cluster/rpk-cluster-partitions-unsafe-recover.md -->

Recover unsafely from partitions that have lost majority.

> ❗ **IMPORTANT**
>
> This operation is unsafe because it allows the forced leader election of the partitions that have lost majority when nodes are gone and irrecoverable; this may result in data loss.

This command allows you to unsafely recover all data adversely affected by the loss of the nodes specified in the `--from-nodes` flag.

You can perform a dry run and verify the partitions that will be recovered by using the `--dry` flag.

## [](#usage)Usage

```bash
rpk cluster partitions unsafe-recover [flags]
```

## [](#flags)Flags

| Value | Type | Description |
| --- | --- | --- |
| --dry | - | Dry run: print the partition movement plan. Does not execute it. |
| --format | string | Output format. Possible values: json, yaml, text, wide, help. Default: text. |
| --from-nodes | - | Comma-separated list of node IDs from which to recover the partitions. |
| -h, --help | - | Help for unsafe-recover. |
| --no-confirm | - | Disable confirmation prompt. |
| --config | string | Redpanda or rpk config file; default search paths are /var/lib/redpanda/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml. |
| -X, --config-opt | stringArray | Override rpk configuration settings. See rpk -X or execute rpk -X help for inline detail or rpk -X list for terser detail. |
| --profile | string | Profile to use. See rpk profile for more details. |
| -v, --verbose | - | Enable verbose logging. |