Apache Cassandra™ 2.0

Clearing the data as a stand-alone process

Remove all data from a tarball installation.

Procedure

To clear all data from the default directories, including the commitlog and saved_caches:

  1. After stopping the process, run the following command from the install directory:
    $ cd install_location
    $ sudo rm -rf data/*
  2. To clear the only the data directory:
    $ cd install_location
    $ sudo rm -rf data/data/*
Show/hide