# rpk cluster partitions disable

> 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 disable
latest-redpanda-tag: v26.2.1
latest-console-tag: v3.10.0
latest-operator-version: v26.2.1
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "false"
page-eol-date: July 28, 2027
latest-connect-version: 4.104.0
docname: rpk/rpk-cluster/rpk-cluster-partitions-disable
page-component-name: streaming
page-version: "26.2"
page-component-version: "26.2"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-cluster/rpk-cluster-partitions-disable.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/main/modules/reference/pages/rpk/rpk-cluster/rpk-cluster-partitions-disable.adoc
description: Disable partitions of a topic. You may disable all partitions of a topic using the <code>--all</code> flag or you may select a set of topic/partitions to disable with the <code>--partitions</code>/<code>-p</code> flag.
page-git-created-date: "2023-12-22"
page-git-modified-date: "2026-08-03"
support-status: supported
---

<!-- Source: https://docs.redpanda.com/streaming/current/reference/rpk/rpk-cluster/rpk-cluster-partitions-disable.md -->

Disable partitions of a topic.

You may disable all partitions of a topic using the `--all` flag or you may select a set of topic/partitions to disable with the `--partitions`/`-p` flag.

The partition flag accepts the format `{namespace}/{topic}/[partitions…​]` where namespace and topic are optional parameters. If the namespace is not provided, `rpk` will assume `kafka`. If the topic is not provided in the flag, `rpk` will use the topic provided as an argument to this command.

## [](#usage)Usage

```bash
rpk cluster partitions disable <topic> [flags]
```

### [](#disabled-partitions)Disabled Partitions

Disabling a partition in Redpanda involves prohibiting any data consumption or production to and from it. All internal processes associated with the partition are stopped, and it remains unloaded during system startup. This measure aims to maintain cluster health by preventing issues caused by specific corrupted partitions that may lead to Redpanda crashes. Although the data remains stored on disk, Redpanda ceases interaction with the disabled partitions to ensure system stability.

## [](#examples)Examples

This section provides examples of how to use `rpk cluster partitions disable`.

Disable all partitions in topic `foo`

```bash
rpk cluster partitions disable foo --all
```

Disable partitions 1,2 and 3 of topic `bar` in the namespace `internal`

```bash
rpk cluster partitions disable internal/bar --partitions 1,2,3
```

Disable partition 1, and 2 of topic `foo`, and partition 5 of topic `bar` in the `internal` namespace'

```bash
rpk cluster partitions disable -p foo/1,2 -p internal/bar/5
```

## [](#flags)Flags

| Value | Type | Description |
| --- | --- | --- |
| -a, --all | bool | If true, disable all partitions for the specified topic. |
| -p, --partitions | stringArray | Comma-separated list of partitions you want to disable. Use --help for additional information. |

## [](#global-flags)Global flags

| Value | Type | Description |
| --- | --- | --- |
| --config | string | Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml. |
| -X, --config-opt | stringArray | Override rpk configuration settings; -X help for detail or -X list for terser detail. |
| --ignore-profile | bool | Ignore rpk.yaml and redpanda.yaml; use default settings. |
| --profile | string | rpk profile to use. |
| -v, --verbose | bool | Enable verbose logging. |