CQL for Cassandra 2.0 & 2.1


Remove all data from a table.

Remove all data from a table.


TRUNCATE keyspace_name.table_name

Synopsis Legend

  • Uppercase means literal
  • Lowercase means not literal
  • Italics mean optional
  • The pipe (|) symbol means OR or AND/OR
  • Ellipsis (...) means repeatable
  • Orange ( and ) means not literal, indicates scope

A semicolon that terminates CQL statements is not included in the synopsis.


A TRUNCATE statement results in the immediate, irreversible removal of all data in the named table.


TRUNCATE user_activity;
Loading Search