Latest Post

Thursday, 22 December 2016

Best Ways to Drop Cassandra Keyspace [Drop]

How to DROP KEYSPACE In Cassendra

KEYSPACE can be drop using the DROP KEYSPACE statement.

Syntax:-
DROP KEYSPACE [ IF EXISTS ] keyspace_name

Example:-
 DROP KEYSPACE [ IF EXISTS ] Customer;

If we are dropping a KEYSPACE that also drop the including all the tables, UTD and functions in it, and all the data contained in those tables.