group delete
kafka group delete <groupIds...>
Delete one or more consumer groups
Arguments
| Argument | Description |
|---|---|
groupIds... |
group ids to delete |
Shared options and defaults: connection profiles, JSON output, logging and help.
Defaults
Deletes supplied groups; it does not delete topic records.
Before you run
Removes group metadata and committed offsets, not topic records. Stop consumers first; recreating the group may replay or skip records according to reset policy.
Flags
| Flag | Description |
|---|---|
--brokers <string> |
comma-separated broker list, e.g. localhost:9092 |
--yes |
confirm the deletion without an interactive prompt |
Examples
kafka group delete my-group --brokers localhost:9092 --yes
Output
Illustrative, abbreviated output. Empty arrays show the result envelope; actual entries, identifiers, optional fields and broker errors depend on the request and cluster.
With --json:
{
"results": [
{
"groupId": "demo-reader",
"ok": true
}
]
}
Declared exit codes: 0, 1, 2, 4, 5. See the exit-code reference for meanings.