What is OffsetDelete?
Clears stored offsets for specific partitions via kafka-consumer-groups.sh --delete-offsets, resetting a group's tracked position. The group must not be actively consuming those partitions, otherwise returns GROUP_SUBSCRIBED_TO_TOPIC.
Wire Diagram
Request Header
message_size
int32 · 4B
api_key
int16 · 2B
api_version
int16 · 2B
correlation_id
int32 · 4B
client_id
string
OffsetDeleteRequest v0
GroupId
string
Name
string
PartitionIndex
int32 · 4B
Schema & Example
Schema { "GroupId": string, "Topics": [{ "Name": string, "Partitions": [{ "PartitionIndex": int32 }] }] }
Example { "GroupId": "order-processors", "Topics": [{ "Name": "orders", "Partitions": [{ "PartitionIndex": 3 }] }] }