conduktor.io ↗

Kafka OffsetDelete Request Wire Format v0 — Binary Protocol Layout

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.

Related Errors

COORDINATOR_NOT_AVAILABLE · GROUP_AUTHORIZATION_FAILED · GROUP_SUBSCRIBED_TO_TOPIC · INVALID_GROUP_ID · TOPIC_AUTHORIZATION_FAILED · UNKNOWN_TOPIC_OR_PARTITION

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
Topics array
Name string
Partitions array
PartitionIndex int32 · 4B

Schema & Example

Schema
{
  "GroupId": string,
  "Topics": [{
      "Name": string,
      "Partitions": [{
          "PartitionIndex": int32
      }]
  }]
}
Example
{
  "GroupId": "order-processors",
  "Topics": [{
      "Name": "orders",
      "Partitions": [{
          "PartitionIndex": 3
      }]
  }]
}