Clear data from Hyper-Converged Database (HCD)

Remove all data from any type of installation.

Package installation

To clear the data from the default directories:

  1. Stop the HCD service.

  2. Run the following command:

    sudo rm -rf /var/lib/cassandra/*

Tarball installation

To clear all data from the default directories:

  1. Stop the HCD process.

  2. Remove the data from the installation location:

    cd <installation_location>
    sudo rm -rf data/* commitlog/* saved_caches/* hints/*

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax | Privacy policy | Terms of use | Manage Privacy Choices

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, info@datastax.com