Updated on 2025-03-17 GMT+08:00
How Do I Reset Kafka Data?
You can reset Kafka data by deleting Kafka topics.
- Delete a topic: kafka-topics.sh --delete --zookeeper ZooKeeper Cluster service IP address:2181/kafka --topic topicname
- Query all topics: kafka-topics.sh --zookeeper ZooKeeper cluster service IP address:2181/kafka --list
After the deletion command is executed, empty topics will be deleted immediately. If a topic has data, the topic will be marked for deletion and will be deleted by Kafka later.
Parent topic: Component Configurations
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.