I am trying to create topics in Kafka by following the guide on Apache Kafka website through command line. While running the command:
bin/kafka-topics.sh --c
Delete the logs and consumer offsets folder which is getting created in the below directory.
C:\Kafka\kafka_2.12-2.5.0\data\zookeeper
PS: You may loose all the previous topic details.