What is DeleteGroups?
Removes consumer groups via kafka-consumer-groups.sh --delete. Only works on groups in the Empty state; attempting to delete an active group returns NON_EMPTY_GROUP. Stored offsets are also deleted, so restarting consumers will apply auto.offset.reset.
| Version | Kafka | Changes |
|---|---|---|
| DeleteGroupsRequest | ||
| v0 | 2.2 | + GroupsNames []string |
| v1 | 2.2 | is the same as version 0. |
| v2 | 2.4 | ~ Flexible encoding enabled FLEXIBLE is the first flexible version. |
| DeleteGroupsResponse | ||
| v0 | 2.2 | + ThrottleTimeMs int32+ Results []DeletableGroupResult+ GroupId string+ ErrorCode int16 |
| v1 | 2.2 | on quota violation, brokers send out responses before throttling. |
| v2 | 2.4 | ~ Flexible encoding enabled FLEXIBLE is the first flexible version. |