What is DeleteTopics?
Permanently removes topics and their data via kafka-topics.sh --delete. Returns TOPIC_AUTHORIZATION_FAILED if the caller lacks DELETE permission; in clusters with auto.create.topics.enable=false, deleting a topic that a consumer references causes UNKNOWN_TOPIC_OR_PARTITION until reconfiguration.
Wire Diagram
Response Header · flexible
message_size
int32 · 4B
correlation_id
int32 · 4B
tagged
var
DeleteTopicsResponse v6
ThrottleTimeMs
int32 · 4B
tagged
var
Name?
string (compact)
TopicId
uuid · 16B
ErrorCode
int16 · 2B
ErrorMessage?
string (compact)
tagged
var
Schema & Example
Schema { "ThrottleTimeMs": int32, "Responses": [{ "Name": string?, "TopicId": uuid, "ErrorCode": int16, "ErrorMessage": string? }] }
Example { "ThrottleTimeMs": 0, "Responses": [{ "Name": null, "TopicId": "550e8400-e29b-41d4-a716-446655440000", "ErrorCode": 0, "ErrorMessage": "NETWORK_EXCEPTION" }] }