I have issued the command to delete a topic:
./bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic vip_ips_alerts
It seemed to
Check status of topic at zookeeper
bin\windows>kafka-topics.bat --list --zookeeper localhost:2181
Output: topic shows marked for deletion
Setting delete.topic.enable=true in server.properties was not working as well.
Solution:
Check the zookeeper data directory location in zookeeper.properties file.
it was dataDir=/tmp/zookeeper.
Issue got resolved after updating "dataDir" to a new location.
dataDir=zk-temp
# the port at which the clients will connect
clientPort=2181
# disable the per-ip limit on the number of connections since this is a non-production config
maxClientCnxns=0