|CQL reference / CQL commands|
Remove the keyspace.
DROP ( KEYSPACE | SCHEMA ) IF EXISTS keyspace_name
In the synopsis section of each statement, formatting has the following meaning:
A semicolon that terminates CQL statements is not included in the synopsis.
A DROP KEYSPACE statement results in the immediate, irreversible removal of a keyspace, including all tables and data contained in the keyspace. You can also use the alias DROP SCHEMA. If the keyspace does not exists, the statement will return an error unless IF EXISTS is used, in which case the operation is a no-op.
DROP KEYSPACE MyTwitterClone;