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.
Wire Diagram
Response Header
message_size
int32 · 4B
correlation_id
int32 · 4B
DeleteGroupsResponse v1
ThrottleTimeMs
int32 · 4B
GroupId
string
ErrorCode
int16 · 2B
Schema & Example
Schema { "ThrottleTimeMs": int32, "Results": [{ "GroupId": string, "ErrorCode": int16 }] }
Example { "ThrottleTimeMs": 0, "Results": [{ "GroupId": "order-processors", "ErrorCode": 0 }] }