1 Overview
Due to various reasons at work, such as too many messages in the topic, or the disk space where Kafka is located, etc., it may be necessary to completely clean up the Kafka topic, so how to completely delete the topic?
But note that no matter how you delete it, the first step is to set up kafka
auto.create.topics.enable=false
delete.topic.enable=true
Otherwise, new and strange problems will arise.
For example, when the producer sends data, you delete the topic, because the topic is automatically created, you will find that you can’t delete it.