Answers for "how to delete topic in kafka"

2

kafka delete topic

$ ./bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic remove-me
Topic remove-me is marked for deletion.
Note: This will have no impact if delete.topic.enable is not set to true.
Posted by: Guest on May-25-2020
1

remove all data from kafka topic

kafka-topics.sh --zookeeper localhost:2181 --alter --topic topic1 --config retention.ms=1000
Posted by: Guest on May-25-2020
0

kafka how to delete all topics

./bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic 'giorgos-.*'
Posted by: Guest on February-08-2021

Browse Popular Code Answers by Language