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.
|
|
-
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/*
-
To clear data on multiple nodes, repeat these steps on each node.