Uninstalling DataStax Enterprise 5.1

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:

    • If installed on Linux with root permissions: $ /usr/share/dse

    • If installed on Linux without root permissions: $ <installation_location>/dse

    • If installed on Mac OS X $ <installation_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.

    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
    $ sudo service dse stop
  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.

    $ rm -r installation_directory

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com