Uninstalling Che after OperatorHub installation using OpenShift CLI

This section provides instructions on how to uninstall a Che instance using oc commands.

  • Che was installed on an OpenShift cluster using OperatorHub.

  • The oc tool 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:

  1. Sign in to the cluster:

    $ oc login -u <username> -p <password> <cluster_URL>
  2. Switch to the project where the Che instance is deployed:

    $ oc project <che_project>
  3. Obtain the checluster Custom Resource name. The following shows a checluster Custom Resource named eclipse-che:

    $ oc get checluster
    NAME          AGE
    eclipse-che   27m
  4. Delete the Che cluster:

    $ oc delete checluster eclipse-che
    checluster.org.eclipse.che "eclipse-che" deleted
  5. Obtain the name of the Che cluster service version (CSV) module. The following detects a CSV module named che.v7.42:

    $ oc get csv
    NAME                 DISPLAY       VERSION   REPLACES             PHASE
    che.v7.42   Eclipse Che   7.42     che.v7.41   Succeeded
  6. Delete the Che CSV:

    $ oc delete csv che.v7.42
    clusterserviceversion.operators.coreos.com "che.v7.42" deleted