Click to copy

• Reviewed for ksqlDB 0.29

How to Delete Topic in ksqlDB

Deleting a topic in ksqlDB is not very straightforward.

If the topic you want to delete wasn't imported as a stream yet, you w ill first need to create a new stream from that topic.

Next, you can delete the topic alongside the stream you have just created by dropping the stream using the DELETE TOPIC modifier.

DROP STREAM stream_name DELETE TOPIC;
Discover what readers are saying
topictale
Get easy to digest how-tos on ksqlDB
Sign up
Please read our Privacy Policy to understand how we protect and manage your data.
You may also like