// Module included in the following assemblies:
//
// * service_mesh/v1x/installing-ossm.adoc


:_mod-docs-content-type: PROCEDURE
[id="ossm-remove-cleanup-1x_{context}"]
= Clean up Operator resources

Follow this procedure to manually remove resources left behind after removing the {SMProductName} Operator using the {product-title} web console.

.Prerequisites

* An account with cluster administration access.
* Access to the OpenShift CLI (`oc`).

.Procedure

. Log in to the {product-title} CLI as a cluster administrator.

. Run the following commands to clean up resources after uninstalling the Operators. If you intend to keep using Jaeger as a stand alone service without service mesh, do not delete the Jaeger resources.
+
[NOTE]
====
The Operators are installed in the `openshift-operators` namespace by default.  If you installed the Operators in another namespace, replace `openshift-operators` with the name of the project where the {SMProductName} Operator was installed.
====
+
[source,terminal]
----
$ oc delete validatingwebhookconfiguration/openshift-operators.servicemesh-resources.maistra.io
----
+
[source,terminal]
----
$ oc delete mutatingwebhookconfiguration/openshift-operators.servicemesh-resources.maistra.io
----
+
[source,terminal]
----
$ oc delete -n openshift-operators daemonset/istio-node
----
+
[source,terminal]
----
$ oc delete clusterrole/istio-admin clusterrole/istio-cni clusterrolebinding/istio-cni
----
// needs a slash?  What is the format here?
+
[source,terminal]
----
$ oc delete clusterrole istio-view istio-edit
----
+
[source,terminal]
----
$ oc delete clusterrole jaegers.jaegertracing.io-v1-admin jaegers.jaegertracing.io-v1-crdview jaegers.jaegertracing.io-v1-edit jaegers.jaegertracing.io-v1-view
----
+
[source,terminal]
----
$ oc get crds -o name | grep '.*\.istio\.io' | xargs -r -n 1 oc delete
----
+
[source,terminal]
----
$ oc get crds -o name | grep '.*\.maistra\.io' | xargs -r -n 1 oc delete
----
+
[source,terminal]
----
$ oc get crds -o name | grep '.*\.kiali\.io' | xargs -r -n 1 oc delete
----
+
[source,terminal]
----
$ oc delete crds jaegers.jaegertracing.io
----
+
[source,terminal]
----
$ oc delete svc admission-controller -n <operator-project>
----
+
[source,terminal]
----
$ oc delete project <istio-system-project>
----
