CQL for Cassandra 1.2

Dropping a table or keyspace

Using the DROP command.

You drop a table or keyspace using the DROP command.


  1. Drop the users table.
    cqlsh:demodb> DROP TABLE users;
  2. Drop the demodb keyspace.
    cqlsh:demodb> DROP KEYSPACE demodb;

Attention: Be sure this document version matches your product version!