Uninstalling License Service

You can uninstall the License Service with one of the following methods:

Uninstalling License Service with the console

Complete the following steps to uninstall the License Service with the Red Hat OpenShift cluster console:

  1. Log in to your Red Hat OpenShift cluster console.

  2. Click Operators > Installed Operators.

  3. Set Project to All projects.

  4. Select the IBM License Service name in the Installed Operators page.

  5. Click Actions > Uninstall Operator.

  6. Select the Delete all operand instances for this operator option, and click Uninstall.

Uninstalling License Service with the CLI

Complete the following steps to uninstall the License Service with the CLI:

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

     oc login --token=<token> --server=<server-url>
     oc project ibm-licensing
    

    Note: The ibm-licensing namespace is the default namespace of the License Service. If you installed License Service in a custom namespace in your cluster, replace ibm-licensing with your custom namespace in the command.

  2. Create an environment variable with the namespace of the License Service.

    ibmlicensingNamespace=ibm-licensing
    
  3. Delete the IBMLicensing instance, csv, and subscription of the License Service.

     oc delete ibmlicensing instance
    
     oc delete csv ibm-licensing-operator.v4.2.1 -n ${ibmlicensingNamespace}
    
     oc delete subscription ibm-licensing-operator-app -n ${ibmlicensingNamespace}