Docs Self-Managed Reference rpk Commands rpk cluster rpk cluster partitions rpk cluster partitions disable This is documentation for Self-Managed v24.1. To view the latest available version of the docs, see v24.2. rpk cluster partitions disable 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 or -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. 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 Disable all partitions in topic foo: rpk cluster partitions disable foo --all Disable partitions 1,2 and 3 of topic bar in the namespace internal: 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: rpk cluster partitions disable -p foo/1,2 -p internal/bar/5 Usage rpk cluster partitions disable [TOPIC] [flags] Flags Value Type Description -a, --all - If true, disable all partitions for the specified topic. -h, --help - Help for disable. -p, --partitions stringArray Comma-separated list of partitions you want to disable. Use --help for additional information. --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. Back to top × Simple online edits For simple changes, such as fixing a typo, you can edit the content directly on GitHub. Edit on GitHub Or, open an issue to let us know about something that you want us to change. Open an issue Contribution guide For extensive content updates, or if you prefer to work locally, read our contribution guide . Was this helpful? thumb_up thumb_down group Ask in the community mail Share your feedback group_add Make a contribution rpk cluster partitions rpk cluster partitions enable