Uninstalling Watson Studio

An instance administrator can uninstall Watson Studio.

Who needs to complete this task?

Instance administrator To uninstall Watson Studio, you must be an instance administrator. An instance administrator has permission to manage software in the following projects:

The operators project for the instance

The operators for this instance of IBM® Software Hub are installed in the operators project. In the uninstall commands, the ${PROJECT_CPD_INST_OPERATORS} environment variable refers to the operators project.

The operands project for the instance

The IBM Software Hub control plane and the services for this instance of IBM Software Hub are installed in the operands project. In the uninstall commands, the ${PROJECT_CPD_INST_OPERANDS} environment variable refers to the operands project.

When do you need to complete this task?

Complete this task if you want to remove Watson Studio from an instance of IBM Software Hub.

Repeat as needed If you are responsible for multiple instances of IBM Software Hub, you can repeat this task to remove other instances of Watson Studio on the cluster.

Information you need to complete this task

Review the following information before you uninstall Watson Studio:

Environment variables
The commands in this task use environment variables so that you can run the commands exactly as written.
  • If you don't have the script that defines the environment variables, see Setting up installation environment variables.
  • To use the environment variables from the script, you must source the environment variables before you run the commands in this task. For example, run:
    source ./cpd_vars.sh

Dependent services

Before you uninstall Watson Studio, ensure that the following services are uninstalled:

Watson Studio dependencies

Watson Studio has a dependency on common core services and Data Refinery. If there are other services in the ${PROJECT_CPD_INST_OPERANDS} project that have a dependency on common core services or Data Refinery, the components won't be uninstalled. The components will only be uninstalled if there are no services with a dependency on them.

Procedure

Complete the following tasks to uninstall Watson Studio:

  1. Uninstalling the service

Uninstalling the service

To uninstall Watson Studio:

  1. Log the cpd-cli in to the Red Hat® OpenShift® Container Platform cluster:
    ${CPDM_OC_LOGIN}
    Remember: CPDM_OC_LOGIN is an alias for the cpd-cli manage login-to-ocp command.
  2. Delete the custom resource and operator for Watson Studio.
    cpd-cli manage uninstall-components \
    --instance_ns=${PROJECT_CPD_INST_OPERANDS} \
    --components=ws \
    --include_dependency=true
    Wait for the cpd-cli to return the following message:
    [SUCCESS]... The uninstall-components command ran successfully