---
title: Uninstalling the OpenShift Update Service from a cluster
---

# Uninstalling the OpenShift Update Service from a cluster {#uninstalling-osus}

You can remove a local copy of the OpenShift Update Service (OSUS) from your cluster. To do this, you must first delete the OSUS application and then uninstall the OSUS Operator.

## Deleting an OpenShift Update Service application {#update-service-delete-service_uninstalling-osus}

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 {#update-service-delete-service-web-console_uninstalling-osus}

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 **Ecosystem** → **Installed 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 {#update-service-delete-service-cli_uninstalling-osus}

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`:

   ```terminal
   $ oc get updateservice -n openshift-update-service
   ```

   ```terminal {title="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`:

   ```terminal
   $ oc delete updateservice service -n openshift-update-service
   ```

   ```terminal {title="Example output"}
   updateservice.updateservice.operator.openshift.io "service" deleted
   ```

## Uninstalling the OpenShift Update Service Operator {#update-service-uninstall_uninstalling-osus}

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 {#update-service-uninstall-web-console_uninstalling-osus}

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 **Ecosystem** → **Installed 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 {#update-service-uninstall-cli_uninstalling-osus}

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`:

   ```terminal
   $ oc project openshift-update-service
   ```

   ```terminal {title="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:

   ```terminal
   $ oc get operatorgroup
   ```

   ```terminal {title="Example output"}
   NAME                             AGE
   openshift-update-service-fprx2   4m41s
   ```
3. Delete the operator group, for example, `openshift-update-service-fprx2`:

   ```terminal
   $ oc delete operatorgroup openshift-update-service-fprx2
   ```

   ```terminal {title="Example output"}
   operatorgroup.operators.coreos.com "openshift-update-service-fprx2" deleted
   ```
4. Get the name of the OpenShift Update Service Operator subscription:

   ```terminal
   $ oc get subscription
   ```

   ```terminal {title="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:

   ```terminal
   $ oc get subscription update-service-operator -o yaml | grep " currentCSV"
   ```

   ```terminal {title="Example output"}
     currentCSV: update-service-operator.v0.0.1
   ```
6. Delete the subscription, for example, `update-service-operator`:

   ```terminal
   $ oc delete subscription update-service-operator
   ```

   ```terminal {title="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:

   ```terminal
   $ oc delete clusterserviceversion update-service-operator.v0.0.1
   ```

   ```terminal {title="Example output"}
   clusterserviceversion.operators.coreos.com "update-service-operator.v0.0.1" deleted
   ```
