This section describes uninstallation procedures for Eclipse Che installed on OpenShift. The uninstallation process leads to a complete removal of Che-related user data. The appropriate uninstallation method depends on what method was used to install the Che instance.
-
For Che installed using OperatorHub, see Uninstalling Che after OperatorHub installation.
-
For Che installed using chectl, see Uninstalling Che after chectl installation
Uninstalling Che after OperatorHub installation
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
Uninstalling Che after chectl installation
This section describes how to uninstall an instance of Eclipse Che that was installed using the chectl tool.
|
-
Che was installed on an OpenShift cluster using
chectl. -
OpenShift command-line tools (
oc) andchectlare installed on the local workstation. -
The user is logged in a Che cluster using
oc.
-
Stop the Eclipse Che Server:
$ chectl server:stop
-
Obtain the name of the Che namespace:
$ oc get checluster --all-namespaces -o=jsonpath="{.items[*].metadata.namespace}" -
Remove Che from the cluster:
$ chectl server:delete -n <namespace>
This removes all Che installations from the cluster.