Assuming that I have a number of topics with the same prefix, e.g:
giorgos-topic1
giorgos-topic2
giorgos-topic3
...
The command used for deleting a single topic (say giorgos-topic1
) is the following:
./bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic giorgos-topic1
Is it possible to delete multiple topics using a single command and possibly a regular expression/wildcard (e.g. giorgos-*
) instead of typing all the topic names that need to be deleted one by one?