Uninstalling DataStax Enterprise 5.0
Launch the uninstaller in the installation directory to uninstall DataStax Enterprise.
Select the uninstall method for your type of installation.
Uninstalling from the DataStax Installer
Use this method when you have installed DataStax Enterprise from the DataStax Installer.
- Go to the server installation directory: (default is ).
- If installed on Linux with root permissions:
$ /usr/share/dse
- If installed on Linux without root permissions:
$ install_location/dse
- If installed on Mac OS X
$ install_location/dse
- If installed on Linux with root permissions:
- Launch the uninstaller:
-
Linux:
$ ./uninstall ## Run the uninstaller as root or sudo if needed
- Mac OS X: Double-click uninstaller.
-
- Select the type of uninstall and follow the instructions on the uninstaller.
Note: If you are going to reinstall DataStax Enterprise with the existing data files, be sure to drain the node and move the files somewhere else before uninstalling.
Using the Unattended Uninstaller
To use this method, you must have installed DataStax Enterprise from the DataStax Installer.
- Create a configuration file called uninstall.property in
the same directory as the uninstaller. For
example:
/usr/share/dse/uninstall.property
- In the uninstall.property file, set the required properties:
do_drain=1|0
- drains the node before uninstallingfull_uninstall=1|0
- uninstalls all components
- From the directory containing the
uninstaller:
sudo ./uninstall --mode unattended
Uninstalling Debian- and RHEL-based packages
Use this method when you have installed DataStax Enterprise using APT or Yum.
- Stop the DataStax Enterprise
service:
nodetool drain
- Make sure all services are
stopped:
ps auwx | grep dse
- If services are still running, use the PID to kill the
service:
bin/dse cassandra-stop -p dse_pid
- Remove the installation directories:RHEL-based packages:
sudo yum remove "dse-*" "datastax-*"
Debian-based packages:
sudo apt-get purge "dse-*" "datastax-*"
Uninstalling the binary tarball
Use this method when you have installed DataStax Enterprise using the binary tarball.
- Stop the node:
bin/dse cassandra-stop ## Use sudo if needed
- Make sure all services are
stopped:
ps auwx | grep dse
- If services are still running, use the PID to kill the
service:
bin/dse cassandra-stop -p dse_pid
- Remove the installation directory.