/    /  Cassandra – Drop Table

Cassandra – Drop Table

Drop table can be used to drop the table.

Syntax:

DROP TABLE <tablename>

Example:

Before giving this command , you should check that if you are in proper keyspace and you are dropping the exact table what you want.

cqlsh> DROP TABLE users;

Validate

If the table get deleted , then you should not be able to see the table name after giving the below command in the respective KeySpace.

cqlsh>Describe columnfamilies;