Clearing the data from DataStax Enterprise

Remove all data from any type of installation.

Package or a DataStax Installer-Services installation

To clear the data from the default directories:

  1. After Stop the service.

  2. Run the following command:

    sudo rm -rf /var/lib/cassandra/* ## Remove all data
    $ sudo rm -rf /var/lib/cassandra/data/* ## Remove only the data directories

Tarball or DataStax Installer-No Services installation

To clear all data from the default directories:

  1. Stop the DataStax Enterprise (DSE) process.

  2. Remove the data:

    cd installation_location
    $ sudo rm -rf data/* commitlog/* saved_caches/* hints/* ## Remove all data
    $ sudo rm -rf data/* ## Remove only the data directories

    where the <installation_location> is either:

    • /var/lib/cassandra/data

    • The directory where you installed DSE.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000,