Notice: Constant WP_MEMORY_LIMIT already defined in /home/javawith/public_html/codesjava.com/wp-config.php on line 107

Notice: Constant WP_MAX_MEMORY_LIMIT already defined in /home/javawith/public_html/codesjava.com/wp-config.php on line 108
Drop Keyspace in Cassandra - CodesJava

CodesJava

Easy learning with example program codes

Drop Keyspace in Cassandra


Notice: Undefined variable: footnotelist in /home/javawith/public_html/codesjava.com/wp-content/plugins/latex2html/inc/core.php on line 475

Cassandra Drop Keyspace
We can drop keyspaces in Cassandra with all the data, column families, user-defined types and indexes, using the “DROP Keyspace” command. Before dropping the keyspace, a snapshot of the keyspace is taken if the keyspace exists; otherwise, an error will be returned.

Syntax:

DROP  keyspace Keyspace_Name;  

Example:

DROP keyspace durable_example;

Explanation:
The keyspace named “durable_example” will be deleted.

Verification:
Use the “USE” command for the verification of the keyspace deletion.

Syntax:

USE durable_example;
Please follow and like us:
error









Copyright © 2019 CodesJava DMCA.com Protection Status