Uninstalling Watson Speech services

A project administrator can uninstall Watson Speech services.

What permissions do you need to complete this task?
The permissions that you need depend on which tasks you must complete:
  • To uninstall Watson Speech services, you must be an administrator of the project where Watson Speech services is installed. This project is identified by the ${PROJECT_CPD_INSTANCE} environment variable.
  • To uninstall the Watson Speech services operators, you must be an administrator of the project where the Cloud Pak for Data operators are installed. This project is identified by the ${PROJECT_CPD_OPS} environment variable.
When do you need to complete this task?
Complete this task if you want to remove a running instance of Watson Speech services from your environment.

Information you need to complete this task

Review the following information before you uninstall Watson Speech services:

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:
    source ./cpd_vars.sh
Installation location
Watson Speech services is installed in the same project (namespace) as the Cloud Pak for Data control plane. This project is identified by the ${PROJECT_CPD_INSTANCE} environment variable.

Procedure

Complete the following tasks to uninstall Watson Speech services:

  1. Deleting service instances
  2. Logging in to the cluster
  3. Uninstalling the service
  4. Uninstalling the operator

Deleting service instances

Before you uninstall Watson Speech services, you must delete any service instances that are associated with Watson Speech services. This ensures that each instance releases the resources that it reserved.

Who needs to complete this task?
A user with the Manage service instances permission must complete this task.
When do you need to complete this task?
Complete this task before you uninstall Watson Speech services.

From the Cloud Pak for Data web client:

  1. Log in to the web client as a user with sufficient permissions to complete the task.
  2. From the menu, select Services > Instances.
  3. Filter the list to show the UI-SVC-TYPE type.
  4. Delete each UI-SVC-TYPE instance in the list.

Logging in to the cluster

To run cpd-cli manage commands, you must log in to the cluster.

To log in to the cluster:

  1. Run the cpd-cli manage login-to-ocp command to log in to the cluster as a user with sufficient permissions to complete this task. For example:
    cpd-cli manage login-to-ocp \
    --username=${OCP_USERNAME} \
    --password=${OCP_PASSWORD} \
    --server=${OCP_URL}
    Tip: The login-to-ocp command takes the same input as the oc login command. Run oc login --help for details.

Uninstalling the service

Who needs to complete this task?
You must be an administrator of the project where Watson Speech services is installed.
When do you need to complete this task?

Complete this task if you want to remove Watson Speech services from your deployment.

If you installed Watson Speech services in multiple projects, you must complete this task for each instance of Watson Speech services that you want to uninstall.

Delete the persistent volume claims (PVCs) for the MinIO and RabbitMQ datastores only if you do not want to preserve a backup copy of your data. The deletion commands permanently remove the datastores and all of their data.

To uninstall the service:

  1. Delete the custom resource for Watson Speech services.
    cpd-cli manage delete-cr \
    --components=watson_speech \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE}
  2. Delete the PVCs for MinIO and RabbitMQ for Watson Speech services.

    oc delete pvc -l "release in (${CUSTOM_RESOURCE_SPEECH}, ${CUSTOM_RESOURCE_SPEECH}-rabbitmq)" -n {{ ${PROJECT_CPD_INSTANCE} }}
  3. Delete the backup PVC for MinIO for Watson Speech services.

    oc delete pvc ${CUSTOM_RESOURCE_SPEECH}-ibm-minio-backup-pvc -n {{ ${PROJECT_CPD_INSTANCE} }}

Uninstalling the operator

Who needs to complete this task?
You must be an administrator with the appropriate permissions to manage OLM objects.
When do you need to complete this task?
Complete this task only if you want to completely remove the Watson Speech services software from the cluster.

To uninstall the operator and other OLM objects:

  1. Delete the OLM objects for Watson Speech services:
    cpd-cli manage delete-olm-artifacts \
    --cpd_operator_ns=${PROJECT_CPD_OPS} \
    --components=watson_speech
    • If the command succeeds, it returns [SUCCESS]... The delete-olm-artifacts command ran successfully.
    • If the command fails, it returns [ERROR] and includes information about the cause of the failure.