Users have two options for uninstalling Che from an OpenShift cluster. The following sections describe both of these methods:
-
Using the OpenShift Administrator Perspective web UI
-
Using
occommands from the terminal
Uninstalling Che using the OpenShift web console
This section describes how to uninstall Che from a cluster using the Openshift Administrator Perspective main menu.
-
Che was installed on an OpenShift cluster using OperatorHub.
-
Open the OpenShift web console.
-
Navigate to the Operators > Installed Operators section.
-
Click Eclipse Che in the list of installed operators.
-
Navigate to the Eclipse Che Cluster tab.
-
In the row that displays information about the specific Che cluster, delete the Che Cluster deployment using the drop-down menu illustrated as three horizontal dots () situated on the right side of the screen.
-
Alternatively, delete the Che deployment by clicking the displayed Eclipse Che Cluster,
eclipse-che, and select the Delete cluster option in the Actions drop-down menu on the top right.
-
Open the OpenShift web console.
-
Navigate to the Operators > Installed Operators section in OpenShift Developer Perspective.
-
In the row that displays information about the specific Eclipse Che Operator, uninstall the Che Operator using the drop-down menu illustrated as three horizontal dots () situated on the right side of the screen.
-
Accept the selected option, Also completely remove the Operator from the selected namespace.
-
Alternatively, uninstall the Eclipse Che Operator by clicking the displayed Eclipse Che Operator,
Eclipse Che, followed by selecting the Uninstall Operator option in the Actions drop-down menu on the top right.
Uninstalling Che using oc commands
This section provides instructions on how to uninstall a Che instance using oc commands.
-
Che was installed on an OpenShift cluster using OperatorHub.
-
OpenShift command-line tools (
oc) are installed on the local workstation.
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.3.0:$ oc get csv NAME DISPLAY VERSION REPLACES PHASE eclipse-che.v7.3.0 Eclipse Che 7.3.0 eclipse-che.v6.x.0 Succeeded
-
Delete the Che CSV:
$ oc delete csv eclipse-che.v7.3.0 clusterserviceversion.operators.coreos.com "eclipse-che.v7.3.0" deleted