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
message_size
int32 · 4B
correlation_id
int32 · 4B
DeleteTopicsResponse v1
ThrottleTimeMs
int32 · 4B
Name
string
ErrorCode
int16 · 2B
Schema & Example
Schema { "ThrottleTimeMs": int32, "Responses": [{ "Name": string, "ErrorCode": int16 }] }
Example { "ThrottleTimeMs": 0, "Responses": [{ "Name": "orders", "ErrorCode": 0 }] }