Uninstalling Che after OperatorHub installation using OpenShift CLI
This section provides instructions on how to uninstall a Che instance using oc
commands.
Prerequisites
-
Che was installed on an OpenShift cluster using OperatorHub.
-
The
oc
tool is available.
Procedure
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
eclipse-che
:$ 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
eclipse-che.v7.23
:$ oc get csv NAME DISPLAY VERSION REPLACES PHASE eclipse-che.v7.23 Eclipse Che 7.23 eclipse-che.v7.22 Succeeded
-
Delete the Che CSV:
$ oc delete csv eclipse-che.v7.23 clusterserviceversion.operators.coreos.com "eclipse-che.v7.23" deleted