How do I delete all data in a Cassandra column family?

后端 未结 6 915
长发绾君心
长发绾君心 2020-12-25 09:46

I\'m looking for a way to delete all of the rows from a given column family in cassandra.

This is the equivalent of TRUNCATE TABLE in SQL.

6条回答
  •  星月不相逢
    2020-12-25 10:16

    If you are using Hector it is easy as well:

    cluster.truncate("our keyspace name here", "your column family name here");
    

提交回复
热议问题