Dropping a keyspace or table

Steps for dropping a keyspace or table using the DROP command.

Drop a table or keyspace using the DROP command.

Procedure

  • Drop the test keyspace.
    cqlsh> DROP KEYSPACE test;
  • Drop the cycling.last_3_days table.
    cqlsh> DROP TABLE cycling.last_3_days;