Clearing the data from DataStax Enterprise
Remove all data from any type of installation.
Package installation
To clear the data from the default directories:
-
After Stop the service.
-
Run the following command:
sudo rm -rf /var/lib/cassandra/* ## Remove all data $ sudo rm -rf /var/lib/cassandra/data/* ## Remove only the data directories
Tarball installation
To clear all data from the default directories:
-
Stop the DataStax Enterprise (DSE) process.
-
Remove the data:
cd installation_location $ sudo rm -rf data/* commitlog/* saved_caches/* hints/* ## Remove all data $ sudo rm -rf data/* ## Remove only the data directorieswhere the
<installation_location>is either:-
/var/lib/cassandra/data -
The directory where you installed DSE.
-