To get a list of all keyspaces via CQL you can run:

*describe keyspaces *or *select keyspace_name from system.schema_keyspaces;*


On Wed, Apr 16, 2014 at 9:23 AM, Sebastian Schmidt <isib...@gmail.com>wrote:

> Hey
>
> I want to do unit tests for software that uses Cassandra as storage
> backend. Using the Hector client, I could just iterate over all
> keyspaces and delete them. In CQL, there is no query to list all
> keyspaces. How can I drop all Keyspaces from Cassandra, without knowing
> every single Keyspace name?
>
> Regards,
> Sebastian
>

Reply via email to