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

cassandra

Solution

You can use the `truncate` thrift call, or the `TRUNCATE <table>` command in CQL.

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

Problem

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.

Original source