Uninstalling User Data Services

Learn how to uninstall User Data Services.

By using the console

Complete the following steps to uninstall IBM User Data Services Operator:

  1. Log in to your OpenShift cluster console.

  2. From the navigation pane, click Installed Operator, and change the project to ibm-common-services.

  3. Select IBM User Data Services Operator from the list.

  4. Go to the All instances tab. Delete the GenerateKey, and AnalyticsProxy or AnalyticsProxyWithSubmodule custom resources (CRs). Wait for around 5 minutes after deleting the CRs. By deleting these custom resources, you delete the Crunchy Postgres for Kubernetes subscription as well.

  5. To delete the ClusterServiceVersion of Crunchy Postgres for Kubernetes , go to Installed Operators and select the Crunchy Postgres for Kubernetes operator.

  6. From the Actions menu, select Delete ClusterServiceVersion option and click Delete.

  7. From the navigation pane, click Secrets, search for secret named submodule-hash-secret and delete it.

By using the CLI

  1. Log in to the OpenShift cluster using oc login command, and switch to ibm-common-services project.

    oc login --token=<token> --server=<server-url>
    oc project ibm-common-services
    
  2. Delete the GenerateKey, and AnalyticsProxy or AnalyticsProxyWithSubmodule CRs.

    oc delete AnalyticsProxy.uds.ibm.com analyticsproxy
    
    oc delete AnalyticsProxyWithSubmodule.uds.ibm.com analyticsproxywithsubmodule
    
    oc delete generatekeys.uds.ibm.com uds-api-key
    

    Wait for around 5 minutes after deletion. By deleting these custom resources, you delete the Crunchy Postgres for Kubernetes subscription as well.

  3. Delete Crunchy Postgres for Kubernetes CSV.

    oc delete csv postgresoperator.v5.0.2
    
  4. Delete the submodule-hash-secret secret, if it is present.

    oc get secret submodule-hash-secret
    oc delete secret submodule-hash-secret
    

    To uninstall the UDS operator, delete the OperandRequest. When all the OperandRequests that request IBM UDS Operator are removed, the UDS pod is removed from the ibm-common-services namespace.