Cloud

rpk group delete

Delete one or more consumer groups.

You may want to delete groups to clean up committed offsets sooner than they expire automatically, such as when you create temporary groups for quick investigation or testing. This command helps you do that.

Consumer groups are automatically deleted when the last committed offset expires. Group offset deletion can happen through:

  • Kafka OffsetDelete API: Offsets can be explicitly deleted using the Kafka OffsetDelete API. See rpk group offset delete.

  • Periodic offset expiration: Offsets expire automatically when the group has been empty for a set duration.

Usage

rpk group delete <groups...> [flags]

Flags

Value Type Description

--format

string

Output format (json,yaml,text,wide,help). (New in v26.2.1)

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.