Uninstalling Che after OperatorHub installation using OpenShift CLI
This section provides instructions on how to uninstall a Che instance using
Che was installed on an OpenShift cluster using OperatorHub.
octool is available.
The following procedure provides command-line outputs as examples. Note that output in the user terminal may differ.
To uninstall a Che instance from a cluster:
Sign in to the cluster:
$ oc login -u <username> -p <password> <cluster_URL>
Switch to the project where the Che instance is deployed:
$ oc project <che_project>
checlusterCustom Resource name. The following shows a
checlusterCustom Resource named
$ oc get checluster NAME AGE eclipse-che 27m
Delete the Che cluster:
$ oc delete checluster eclipse-che checluster.org.eclipse.che "eclipse-che" deleted
Obtain the name of the Che cluster service version (CSV) module. The following detects a CSV module named
$ oc get csv NAME DISPLAY VERSION REPLACES PHASE che.v7.42 Eclipse Che 7.42 che.v7.41 Succeeded
Delete the Che CSV:
$ oc delete csv che.v7.42 clusterserviceversion.operators.coreos.com "che.v7.42" deleted