kafka delete messages topics code example
Example 1: 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.
Example 2: kafka how to delete all topics
./bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic 'giorgos-.*'