CQL for Cassandra 1.2

Dropping a table or keyspace

You drop a table or keyspace using the DROP command.

Procedure

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