Cassandra – Drop KeySpace

In this tutorial, we will learn about the DROP Keyspace command which allows you to drop the keyspace which includes all the data, column families,UTD,indexes from cassandra.

Syntax:

DROP KEYSPACE [ IF EXISTS ] keyspace_name

Example:

DROP KEYSPACE i2Tutorials;

Validate the Drop KeySpace.

Cqlsh> Describe keyspaces;
system_schema system_auth  system system_distributed system_traces