Table of contents

Uninstalling Cloud Pak for Data

A project administrator can uninstall the Cloud Pak for Data control plane.

Permissions you need for this task:
To complete this task, you must be an administrator of the OpenShift® project (Kubernetesnamespace) where:
  • The Cloud Pak for Data control plane is installed
  • The Cloud Pak for Data operators are installed, either ibm-common-services or cpd-operators

Procedure

  1. Uninstalling dependent services
  2. Uninstalling Cloud Pak for Data
  3. Uninstalling the operators
    Note: Complete this step only if you want to completely remove the Cloud Pak for Data software from your cluster.

Uninstalling dependent services

All services depend on the Cloud Pak for Data control plane.

Ensure that you uninstall any services that are installed in the same project (or tethered projects) as the control plane before you uninstall the control plane.

For details, see the appropriate service documentation in Services.

Uninstalling Cloud Pak for Data

When you need to complete this task
Complete this task when you want to remove a running instance of the Cloud Pak for Data.

If you installed multiple instances of Cloud Pak for Data on the cluster, you must complete this task for each instance of Cloud Pak for Data that you want to uninstall.

If you plan to uninstall the Cloud Pak for Data operators, you must uninstall all instances of Cloud Pak for Data before you uninstall the operators.

To remove Cloud Pak for Data:

  1. Log in to your Red Hat® OpenShift cluster as a user with sufficient permissions to complete the task:
    oc login OpenShift_URL:port
  2. Change to the project where the Cloud Pak for Data control plane is deployed:
    oc project project_name
  3. Get the name of the custom resource:
    oc get Ibmcpd -n project_name
  4. Delete the Ibmcpd custom resource to remove the Cloud Pak for Data platform:
    oc delete Ibmcpd custom-resource-name -n project_name
  5. Delete the zenservice custom resource to remove the control plane:
    oc delete zenservice lite-cr -n project_name
  6. Run the following command to verify that the resources that were created by Cloud Pak for Data and the control plane are deleted:
    oc get all -l "app.kubernetes.io/name in (0020-zen-base, 0015-setup, 0010-infra)"

Uninstalling the operators

When you need to complete this task
Complete this task only if you want to completely remove Cloud Pak for Data from your cluster.

Complete this task after you uninstall the Cloud Pak for Data control plane.

To uninstall the Cloud Pak for Data operators:

  1. Log in to your Red Hat OpenShift cluster as a user with sufficient permissions to complete the task:
    oc login OpenShift_URL:port
  2. Change to the project where Cloud Pak for Data was deployed:
    oc project project_name
  3. Remove the zen operator:
    oc delete operandrequest zen-service

    This command removes the zen operator from the instance project and from the project where the IBM Cloud Pak® for Data platform operator is installed (either ibm-common-services or cpd-operators).

  4. Delete the IBM Cloud Pak for Data platform operator:
    1. Delete the subscription to the operator:
      oc delete subscription cpd-operator -n ibm-common-services|cpd-operators
    2. Delete the CSV for the operator:
      oc delete csv cpd-platform-operator.v2.0.0 -n ibm-common-services|cpd-operators
  5. Verify that the IBM Cloud Pak for Data platform operator deployment was removed:
    oc get deploy cpd-platform-operator-manager
    The command should return the following message:
    Error from server (NotFound): deployments.apps "cpd-platform-operator-manager" not found

Uninstalling IBM Cloud Pak foundational services

If you don't have other IBM® Cloud Paks on your cluster, you might want to uninstall IBM Cloud Pak foundational services after you uninstall Cloud Pak for Data. For details, see: