This is a cache of https://docs.openshift.com/container-platform/4.12/updating/updating-restricted-network-cluster/uninstalling-osus.html. It is a snapshot of the page at 2024-11-25T11:18:18.476+0000.
Uninstalling OSUS from a cluster - Updating a cluster in a disconnected environment | Updating clusters | OpenShift Container Platform 4.12
×

Deleting an OpenShift Update service application

You can delete an OpenShift Update service application by using the OpenShift Container Platform web console or CLI.

Deleting an OpenShift Update service application by using the web console

You can use the OpenShift Container Platform web console to delete an OpenShift Update service application by using the OpenShift Update service Operator.

Prerequisites
  • The OpenShift Update service Operator has been installed.

Procedure
  1. In the web console, click OperatorsInstalled Operators.

  2. Choose OpenShift Update service from the list of installed Operators.

  3. Click the Update service tab.

  4. From the list of installed OpenShift Update service applications, select the application to be deleted and then click Delete Updateservice.

  5. From the Delete Updateservice? confirmation dialog, click Delete to confirm the deletion.

Deleting an OpenShift Update service application by using the CLI

You can use the OpenShift CLI (oc) to delete an OpenShift Update service application.

Procedure
  1. Get the OpenShift Update service application name using the namespace the OpenShift Update service application was created in, for example, openshift-update-service:

    $ oc get updateservice -n openshift-update-service
    Example output
    NAME      AGE
    service   6s
  2. Delete the OpenShift Update service application using the NAME value from the previous step and the namespace the OpenShift Update service application was created in, for example, openshift-update-service:

    $ oc delete updateservice service -n openshift-update-service
    Example output
    updateservice.updateservice.operator.openshift.io "service" deleted

Uninstalling the OpenShift Update service Operator

You can uninstall the OpenShift Update service Operator by using the OpenShift Container Platform web console or CLI.

Uninstalling the OpenShift Update service Operator by using the web console

You can use the OpenShift Container Platform web console to uninstall the OpenShift Update service Operator.

Prerequisites
  • All OpenShift Update service applications have been deleted.

Procedure
  1. In the web console, click OperatorsInstalled Operators.

  2. Select OpenShift Update service from the list of installed Operators and click Uninstall Operator.

  3. From the Uninstall Operator? confirmation dialog, click Uninstall to confirm the uninstallation.

Uninstalling the OpenShift Update service Operator by using the CLI

You can use the OpenShift CLI (oc) to uninstall the OpenShift Update service Operator.

Prerequisites
  • All OpenShift Update service applications have been deleted.

Procedure
  1. Change to the project containing the OpenShift Update service Operator, for example, openshift-update-service:

    $ oc project openshift-update-service
    Example output
    Now using project "openshift-update-service" on server "https://example.com:6443".
  2. Get the name of the OpenShift Update service Operator operator group:

    $ oc get operatorgroup
    Example output
    NAME                             AGE
    openshift-update-service-fprx2   4m41s
  3. Delete the operator group, for example, openshift-update-service-fprx2:

    $ oc delete operatorgroup openshift-update-service-fprx2
    Example output
    operatorgroup.operators.coreos.com "openshift-update-service-fprx2" deleted
  4. Get the name of the OpenShift Update service Operator subscription:

    $ oc get subscription
    Example output
    NAME                      PACKAGE                   SOURCE                        CHANNEL
    update-service-operator   update-service-operator   updateservice-index-catalog   v1
  5. Using the Name value from the previous step, check the current version of the subscribed OpenShift Update service Operator in the currentCSV field:

    $ oc get subscription update-service-operator -o yaml | grep " currentCSV"
    Example output
      currentCSV: update-service-operator.v0.0.1
  6. Delete the subscription, for example, update-service-operator:

    $ oc delete subscription update-service-operator
    Example output
    subscription.operators.coreos.com "update-service-operator" deleted
  7. Delete the CSV for the OpenShift Update service Operator using the currentCSV value from the previous step:

    $ oc delete clusterserviceversion update-service-operator.v0.0.1
    Example output
    clusterserviceversion.operators.coreos.com "update-service-operator.v0.0.1" deleted