Apache Cassandra™ 1.2

Dropping tables and keyspaces

Steps for removing tables and keyspaces.

With Cassandra CLI commands you can drop tables and keyspaces in much the same way that tables and databases are dropped in a relational database.

Procedure

Drop the example users table and then drop the demo keyspace.
[default@demo] DROP COLUMN FAMILY users;

[default@demo] DROP KEYSPACE demo;

Attention: Be sure this document version matches your product version

Show/hide