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.

  1. 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
  2. Launch the uninstaller:
    • Linux: $ ./uninstall ## Run the uninstaller as root or sudo if needed

    • Mac OS X: Double-click uninstaller.
  3. 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.

  1. Create a configuration file called uninstall.property in the same directory as the uninstaller. For example:
    /usr/share/dse/uninstall.property
  2. In the uninstall.property file, set the required properties:
    • do_drain=1|0 - drains the node before uninstalling
    • full_uninstall=1|0 - uninstalls all components
    where 1=yes and 0=no.
  3. 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.

  1. Stop the DataStax Enterprise service:
    nodetool drain 
  2. Make sure all services are stopped:
    ps auwx | grep dse
  3. If services are still running, use the PID to kill the service:
    bin/dse cassandra-stop -p dse_pid
  4. 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.

  1. Stop the node:
    bin/dse cassandra-stop ## Use sudo if needed
  2. Make sure all services are stopped:
    ps auwx | grep dse
  3. If services are still running, use the PID to kill the service:
    bin/dse cassandra-stop -p dse_pid
  4. Remove the installation directory.