[Kafka] How does Kafka completely delete topics in Kafka

Insert picture description here

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.

Guess you like

Origin blog.csdn.net/qq_21383435/article/details/108810763