Dropping a table or keyspace
Steps for dropping table or keyspace using the DROP command.
You drop a table or keyspace using the DROP command.
Procedure
-
Drop the users table.
cqlsh:demodb> DROP TABLE users;
-
Drop the demodb keyspace.
cqlsh:demodb> DROP KEYSPACE demodb;