Uninstallation is not successful (uninstallation does not remove all components)

After you uninstall IBM Cloud Pak foundational services from your cluster, some foundational services components remain in the cluster.

Important: You cannot use the following procedure in a cluster that has multiple instances of foundational services installed.

To remove all foundational services components, run the following script.

  1. Log in to OpenShift cluster as an admin user by running the oc login command.

  2. Download the script to remove the components.

     wget https://raw.githubusercontent.com/IBM/ibm-common-service-operator/scripts/force-uninstall.sh
    

    You can use the ./force-uninstall.sh -h command to view the options available when you run the script.

  3. Run the script to remove the components:

    • If you installed foundational services in the ibm-common-services namespace, run the following command:

      ./force-uninstall.sh
      
    • If you installed foundational services in a custom namespace, run the following command:

      ./force-uninstall.sh -n <custom-namespace>
      
  4. Review the number of oauthClients in the cluster using the following command:

    oc get oauthClients -A | wc -l
    

    If you notice excess phantom oauthClients, see OIDC Client Watcher shows CrashLoopBackOff status to clean up the excess clients.