To remove all rows from a CQL table, you can use the TRUNCATE command:
TRUNCATE keyspace_name.table_name;
Or, if you are already using a keyspace that contains your target table:
TRUNCATE table_name;
It's important to note, but by default, Cassandra creates a snapshot of the table just before TRUNCATE. Be sure to clear the old snapshots or set auto_snapshot: false to your cassandra.yaml.
Aaron Aug 25 '14 at 13:48 2014-08-25 13:48
source share