4

I have several Kafka topics I used as tests. Now I want to get rid of them all by cleaning up my kafka topic list. I set the variable delete.topic.enable=true, I stopped and restarted the zookeeper and kafka servers. But nothing helped me. The topics are still there, 'marked for deletion'. I read this question, but didn't find any answer. Otherwise, here it is suggested to remove manually any topic. But how do I do that? At the end of the story, manually or by command line, how do I remove Kafka topics for good?

  • stackoverflow.com/questions/23976670/… may help you – Jacky1205 Jun 15 '17 at 10:13
  • 1
    As I have written in my question, I already checked that question. It's the first that pops up if you search. The problem is that even if I restart the server and set the variable, the topics are still there. Do you know how to help me? – sirdan Jun 15 '17 at 10:21
  • Do you try to modify the server.properties and restart kafka and zookeeper – Jacky1205 Jun 15 '17 at 10:26
  • Another post is stackoverflow.com/questions/33094746/… – Jacky1205 Jun 15 '17 at 10:27
  • Yes, I have set delete.topic.enable=true and restarted everything. It's all still there. Since days ago. As I have written in the question, I have read also the second link you provided. – sirdan Jun 15 '17 at 10:29
4

Solved it: it is enough to manually delete the folders which contains all the logs from Zookeeper and Kafka servers.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.