Apache Cassandra 1.0 Documentation

TRUNCATE

This document corresponds to an earlier product version. Make sure you are using the version that corresponds to your version.

Latest Cassandra documentation | Earlier Cassandra documentation

Removes all data from a column family.

Synopsis

TRUNCATE <column_family>;

Description

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

Example

TRUNCATE user_activity;