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

后端 未结 6 926
长发绾君心
长发绾君心 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:32

    You can use the truncate thrift call, or the TRUNCATE

    command in CQL.

    http://www.datastax.com/docs/1.0/references/cql/TRUNCATE

    提交回复
    热议问题