Table of contents

Uninstall Watson Studio Local

Use the uninstall.sh script to uninstall Watson Studio Local.

Uninstall by command line

Note: Python 2.7 (comes with the RHEL7.2 and 7.3 operating systems)

To run the uninstallation script, enter the following command:

chmod u+x /wdp/utils/uninstall.sh && /wdp/utils/uninstall.sh --username=wdp --password=pass --port=22 --privatekey=path_to_ssh_key --keep-data

where wdp represents the username for all of the nodes (default value is root), pass represents the password for all of the nodes (default value is the SSH key), 22 represents the port number to connect to all of the nodes (default value is 22), path_to_ssh_key represents an optional absolute path to a private SSH key, and --keep-data preserves the data folder.

To run the uninstallation script without removing the docker that is already installed on a cluster, enter the following command:

chmod u+x /wdp/utils/uninstall.sh && /wdp/utils/uninstall.sh --keep-docker

where the --keep-docker option preserves the existing docker installation. This option can be useful for RedHat users who must install docker separately before the Watson Studio Local installation. It eliminates the need to re-install docker on RedHat clusters after the Watson Studio Local uninstall with the default removal of docker. Note that this option can be used with other options as needed.

During the uninstallation, you will be prompted for the non-root username and password for running the command. This option can be used with other options as appropriate.

To run the uninstallation script as a sudo user, enter the following command:

chmod u+x /wdp/utils/uninstall.sh && sudo /wdp/utils/uninstall.sh --username=wdp --password=pass --privatekey=path_to_ssh_key --keep-data

where wdp represents the username of a user with sudo privileges for all of the nodes, pass represents the password for all of the nodes (default value is the SSH key), path_to_ssh_key represents an optional absolute path to a private SSH key, and --keep-data preserves the data folder. If using the --password option, you will be prompted for a password for sudo user wdp in addition to entering it when invoking the script as sudo user. It is assumed that sudo user is already set up on a cluster.

To run the uninstallation script with the default values, enter the following command:

chmod u+x /wdp/utils/uninstall.sh && /wdp/utils/uninstall.sh