Click to copy

• Reviewed for ksqlDB 0.29

How to Drop a Table in ksqlDB

To delete a table, use a DROP statement:

DROP table_name;

Deleting a materialized table

A materialized table also has a persistent query updating its state and an underlying compacted topic that contains that state.

To also clean those two, when dropping the table make sure to add the DELETE TOPIC modifier:

DROP table_name DELETE TOPIC;
Not sure if the table is materialized? Read how to know if a table is materialized.
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