Dropping a keyspace or table

Use the DROP KEYSPACE or DROP TABLE command to drop a keyspace or table.

Use the DROP KEYSPACE or DROP TABLE command to drop a keyspace or table.

Procedure

  • Drop the cycling keyspace.
    DROP KEYSPACE IF EXISTS cycling;
  • Drop the cycling.comments table.
    DROP TABLE IF EXISTS cycling.comments;