how to delete all kafka topics code example
Example 1: remove all data from kafka topic
kafka-topics.sh --zookeeper localhost:2181 --alter --topic topic1 --config retention.ms=1000
Example 2: kafka how to delete all topics
./bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic 'giorgos-.*'