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>
Obtain the Che cluster name. The following shows a cluster 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 eclipse-che.v7.18 Eclipse Che 7.18 eclipse-che.v7.16 Succeeded
Delete the Che CSV:
$ oc delete csv eclipse-che.v7.18 clusterserviceversion.operators.coreos.com "eclipse-che.v7.18" deleted