Quick way to wipe all Streams, Tables, Topics and start fresh?

98 views
Skip to first unread message

Darrel Riekhof

unread,
Dec 6, 2018, 6:13:50 PM12/6/18
to Confluent Platform
We've been playing around with KSQL on our 3 broker DEV cluster and have a lot of leftover topics that seem to want to persist.  I've stopped all producers and consumers I'm aware of, deleted all the Streams and Tables from the KSQL CLI, then stopped the KSQL servers and attempted to delete all topics with the kafka-topics CLI (other than all the system '_' topics).  But the best I can do is be left with several that are 'marked for deletion' and then within a few minutes several deleted topics re-appear.

Is there a quick easy fail-safe way to nuke all the cluster topics from orbit?  I just want to start fresh with a clean cluster and don't care about any existing topics or data.

Sacha Barber

unread,
Dec 7, 2018, 2:29:32 AM12/7/18
to Confluent Platform
Ypu can just see what log directory you have set for kafka (in its config file) amd just nuke that directory

This will get rid of everything

Darrel Riekhof

unread,
Dec 10, 2018, 5:03:16 PM12/10/18
to Confluent Platform
Thanks. 

I deleted the contents of our kafka log dir on each of our 3 brokers.  Just for good measure I also went into zookeeper and deleted /brokers/topics.

Now it appears to be working and free of all our sandboxing garbage.
Message has been deleted

Sacha Barber

unread,
Dec 11, 2018, 4:55:03 PM12/11/18
to Confluent Platform
Great, glad it worked out for you
Reply all
Reply to author
Forward
0 new messages