Uninstalling DataStax Enterprise 4.8 

Launch the uninstaller in the installation directory to uninstall DataStax Enterprise and DataStax Agent.

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 /usr/share/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 and DataStax Agent services:
    $ nodetool -h drain host_name
    $ sudo service dse stop
    $ sudo service datastax-agent stop
  2. Make sure all services are stopped:
    $ ps auwx | grep dse
    $ ps auwx | grep datastax-agent
  3. If services are still running, use the PID to kill the service:
    $ bin/dse cassandra-stop -p dse_pid
    $ sudo kill datastax_agent_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:
    $ install_location/bin/dse cassandra-stop ## Use sudo if needed
  2. Stop the DataStax Agent:
    $ ps auwx | grep datastax-agent
    $ kill datastax_agent_pid ## Use sudo if needed
  3. Make sure all services are stopped:
    $ ps auwx | grep dse
    $ ps auwx | grep datastax-agent
  4. If services are still running, use the PID to kill the service:
    $ bin/dse cassandra-stop -p dse_pid
    $ sudo kill datastax_agent_pid
  5. Remove the installation directory.