What is the purpose of nodetool cleanup, and when should you run it?

Last updated 11 July 2026

  • nodetool cleanup rewrites SSTables to drop data a node no longer owns after token ownership changes, reclaiming disk space.

  • Run it on pre-existing nodes after new nodes finish bootstrapping (or topology changes). It is not routine and not needed after decommission/removenode.

  • It is I/O intensive, so run it one node at a time during low traffic.

  • https://axonops.com/docs/data-platforms/cassandra/operations/nodetool/cleanup/
  • https://forums.pega.com/t/how-the-nodetool-cleanup-command-work-in-dds-node/5818
  • https://docs.scylladb.com/manual/stable/operating-scylla/nodetool-commands/cleanup.html
  • https://www.ibm.com/support/pages/how-not-running-nodetool-cleanup-could-cause-data-resurrection
  • https://docs.datastax.com/en/dse/6.9/managing/tools/nodetool/cleanup.html
  • https://docs.datastax.com/en/mission-control/administration/control-plane/cleanup.html
  • https://cassandra.apache.org/doc/latest/cassandra/managing/tools/nodetool/cleanup.html
All Cassandra interview questions