Delete snapshot files

When taking a snapshot, previous snapshot files are not automatically deleted. You should remove old snapshots that are no longer needed.

The nodetool clearsnapshot command removes all existing snapshot files from the snapshot directory of each keyspace. You should make it part of your back-up process to clear old snapshots before taking a new one.

Delete all snapshots for a node

  1. Run the nodetool clearsnapshot command:

    nodetool -h localhost -p 7199 clearsnapshot

    Tarball path:

    <installation_location>/resources/cassandra/bin

    To delete snapshots on all nodes at once, run the nodetool clearsnapshot command using a parallel ssh utility.

  2. To delete a single snapshot, run the clearsnapshot command with the snapshot name:

    nodetool clearsnapshot -t SNAPSHOT_NAME

    Replace SNAPSHOT_NAME with the name of the snapshot you want to delete.

    The file name and path vary according to the type of snapshot. For details about snapshot names and paths, run nodetool snapshot.

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