Chapter 1. Uninstalling OpenShift Service Mesh You can uninstall the Red Hat OpenShift Service Mesh Operator from an existing OpenShift Container Platform instance and remove its resources either by using the OpenShift Container Platform web console, or through the command line interface (CLI). You can also delete Istio custom resource definitions (CRDs). 1.1. Uninstalling OpenShift Service Mesh Operator 3 and the Istio control plane using the web console Uninstalling Red Hat OpenShift Service Mesh Operator 3 and the Istio control plane from an existing OpenShift Container Platform instance requires removing the following: Istio resource IstioCNI resource Red Hat OpenShift Service Mesh Operator 3 istio-system project istio-cni project Optionally, you can remove the Istio custom resource definitions (CRDs). You can uninstall the Red Hat OpenShift Service Mesh Operator 3 either by using the OpenShift Container Platform web console. Procedure Delete the Istio resource: In the OpenShift web console, click Operators Installed Operators . Click Istio in the Provided APIs column. Click the Options menu Delete Istio . At the prompt to confirm the action, click Delete . Delete the IstioCNI resource: In the OpenShift web console, click Operators Installed Operators . Click IstioCNI in the Provided APIs column. Click the Options menu Delete IstioCNI . At the prompt to confirm the action, click Delete . Uninstall Red Hat OpenShift Service Mesh 3 Operator: In the OpenShift web console, click Operators Installed Operators . Locate Red Hat OpenShift Service Mesh 3 Operator. Click the Options menu Uninstall Operator . At the prompt to confirm the action, select the Delete all operand instances for this operator checkbox. Click Uninstall . Delete the istio-system project: In the OpenShift web console, click Home Projects . Locate the name of the istio-system project. Click the Options menu Delete Project . At the prompt to confirm the action, enter the name of the project. Click Delete . Delete the istio-cni project: In the OpenShift web console, click Home Projects . Locate the name of the istio-cni project. Click the Options menu Delete Project . At the prompt to confirm the action, enter the name of the project. Click Delete . 1.2. Uninstall OpenShift Service Mesh by using the CLI Uninstalling Red Hat OpenShift Service Mesh Operator 3 and the Istio control plane from an existing OpenShift Container Platform instance requires removing the following: Istio resource IstioCNI resource Red Hat OpenShift Service Mesh Operator 3 istio-system project istio-cni project Optionally, you can remove the Istio custom resource definitions (CRDs). You can uninstall the Red Hat OpenShift Service Mesh Operator 3 either by using the OpenShift Container Platform command line interface (CLI). Procedure Delete the Istio resource: Retrieve the Istio resource name by running the following command: USD oc get istio -n istio-system Replace <name_of_custom_resource> with the output from the command, and run the following command to remove the custom resource: USD oc delete istio/<name_of_custom_resource> Delete the IstioCNI resource: Retrieve the name of the IstioCNI resource by running the following command: USD oc get istioCNI -n istio-system Replace <name_of_custom_resource> with the output from the command, and run the following command to remove the custom resource: USD oc delete istioCNI/<name_of_custom_resource> Delete the istio-system and istio-cni projects: Delete the istio-system namespace by running the following command: USD oc delete ns istio-system Delete the istio-cni namespace by running the following command: USD oc delete ns istio-cni Uninstall OpenShift Service Mesh Operator 3: Delete the servicemeshoperator3 subscription: USD oc delete subscription servicemeshoperator3 -n openshift-operators Example output output: subscription.operators.coreos.com "servicemeshoperator3" deleted Check the current version of the servicemeshoperator3 subscribed Operator in the currentCSV field by running the following command: USD oc get subscription servicemeshoperator3 -n openshift-operators -o yaml | grep currentCSV Example output output: currentCSV: servicemeshoperator3.v3.0.0-tp.1 Delete the cluster service version (CSV) for the Operator in the target namespace using the currentCSV value from the step: USD oc delete clusterserviceversion servicemeshoperator3.v3.0.0-tp.1 -n openshift-operators Example output clusterserviceversion.operators.coreos.com "servicemeshoperator3.v3.0.0-tp.1" deleted. 1.3. Delete Istio custom resource definitions Deleting Istio custom resource definitions (CRDs) are optional. Procedure To delete the Istio CRDs, run the following command: USD oc get crds -oname | grep -e istio.io -e sailoperator.io | xargs kubectl delete Additional resources Operator Lifecycle Management

Commands:
oc get istio -n istio-system
oc delete istio/<name_of_custom_resource>
oc get istioCNI -n istio-system
oc delete istioCNI/<name_of_custom_resource>
oc delete ns istio-system
oc delete ns istio-cni
oc delete subscription servicemeshoperator3 -n openshift-operators
output: subscription.operators.coreos.com "servicemeshoperator3" deleted
oc get subscription servicemeshoperator3 -n openshift-operators -o yaml | grep currentCSV
output: currentCSV: servicemeshoperator3.v3.0.0-tp.1
oc delete clusterserviceversion servicemeshoperator3.v3.0.0-tp.1 -n openshift-operators
clusterserviceversion.operators.coreos.com "servicemeshoperator3.v3.0.0-tp.1" deleted.
oc get crds -oname | grep -e istio.io -e sailoperator.io | xargs kubectl delete