Clear HCD data directories

To delete all database data from a Hyper-Converged Database (HCD) installation, you must clear the /data, /commitlog, /saved_caches, and /hints directories. This can be accomplished with sudo rm -rf on the relevant directories.

sudo rm -rf is a forceful, recursive delete operation on one or more directories. It removes all contents of the specified directories, including nested subdirectories, without seeking intervention from the user. This includes SSTables, commit logs, and other files that are typically used for data recovery. If you need to preserve any data, ensure that it is stored in a separate location from your HCD installation.

  1. Stop the node.

  2. Delete the contents of the HCD data directories.

    The following examples use the default directories. If you use non-default directories, target those directories instead of the default directories. To clear only one directory or a subdirectory, target that specific directory path only.

    Package installations

    By default, the data directories are subdirectories of var/lib/cassandra:

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

    By default, the data directories for tarball installations are subdirectories of the HCD installation directory. This example changes to the installation directory and then targets the relevant subdirectories.

    cd INSTALL_DIRECTORY &&
    sudo rm -rf data/* commitlog/* saved_caches/* hints/*
  3. To clear data on multiple nodes, repeat these steps on each node.

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2026 | 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: Contact IBM