Cassandra – Truncate Table
In this tutorial, we will learn about TRUNCATE Table command in Cassandra which will allow to truncate all the data from a table. The Date removed is irreversible.
Note: Truncating a table triggers an automatic snapshot which backs up the data only, not the schema.
Syntax:
TRUNCATE keyspace_name.table_name;
Example:
cqlsh> Truncate users;