$ oc get subscription jaeger -n openshift-operators -o yaml | grep currentCSV currentCSV: jaeger-operator.v1.8.2
The following describes how to delete Operators from a cluster using either the web console or the CLI.
Cluster administrators can delete installed Operators from a selected namespace by using the web console.
Access to an OpenShift Container Platform cluster web console using an account with
cluster-admin
permissions.
From the Operators → Installed Operators page, scroll or type a keyword into the Filter by name to find the Operator you want. Then, click on it.
On the right-hand side of the Operator Details page, select Uninstall Operator from the Actions drop-down menu.
An Uninstall Operator? dialog box is displayed, reminding you that Removing the operator will not remove any of its custom resource definitions or managed resources. If your operator has deployed applications on the cluster or configured off-cluster resources, these will continue to run and need to be cleaned up manually.
The Operator, any Operator deployments, and Pods are removed by this action. Any resources managed by the Operator, including CRDs and CRs are not removed. The web console enables dashboards and navigation items for some Operators. To remove these after uninstalling the Operator, you might need to manually delete the Operator CRDs.
Select Uninstall. This Operator stops running and no longer receives updates.
Cluster administrators can delete installed Operators from a selected namespace by using the CLI.
Access to an OpenShift Container Platform cluster using an account with
cluster-admin
permissions.
oc
command installed on workstation.
Check the current version of the subscribed Operator (for example, jaeger
)
in the currentCSV
field:
$ oc get subscription jaeger -n openshift-operators -o yaml | grep currentCSV currentCSV: jaeger-operator.v1.8.2
Delete the Operator’s Subscription (for example, jaeger
):
$ oc delete subscription jaeger -n openshift-operators subscription.operators.coreos.com "jaeger" deleted
Delete the CSV for the Operator in the target namespace using the currentCSV
value from the previous step:
$ oc delete clusterserviceversion jaeger-operator.v1.8.2 -n openshift-operators clusterserviceversion.operators.coreos.com "jaeger-operator.v1.8.2" deleted