Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 6. Uninstalling CodeReady Workspaces
This section describes uninstallation procedures for Red Hat CodeReady Workspaces. The uninstallation process leads to a complete removal of CodeReady Workspaces-related user data. The method previously used to install the CodeReady Workspaces instance determines the uninstallation method.
- For CodeReady Workspaces installed using OperatorHub, for the OpenShift Web Console method see Section 6.1, “Uninstalling CodeReady Workspaces after OperatorHub installation using the OpenShift web console”.
- For CodeReady Workspaces installed using OperatorHub, for the CLI method see Section 6.2, “Uninstalling CodeReady Workspaces after OperatorHub installation using OpenShift CLI”.
- For CodeReady Workspaces installed using crwctl, see Section 6.3, “Uninstalling CodeReady Workspaces after crwctl installation”
6.1. Uninstalling CodeReady Workspaces after OperatorHub installation using the OpenShift web console Link kopierenLink in die Zwischenablage kopiert!
This section describes how to uninstall CodeReady Workspaces from a cluster using the OpenShift Administrator Perspective main menu.
Prerequisites
- CodeReady Workspaces was installed on an OpenShift cluster using OperatorHub.
Procedure
- Navigate to the OpenShift web console and select the Administrator Perspective.
In the Home > Projects section, navigate to the project containing the CodeReady Workspaces instance.
NoteThe default project name is <workspaces>.
- In the Operators > Installed Operators section, click Red Hat CodeReady Workspaces in the list of installed operators.
In the Red Hat CodeReady Workspaces Cluster tab, click the displayed Red Hat CodeReady Workspaces Cluster, and select the Delete cluster option in the Actions drop-down menu on the top right.
NoteThe default Red Hat CodeReady Workspaces Cluster name is <red-hat-codeready-workspaces>.
- In the Operators > Installed Operators section, click Red Hat CodeReady Workspaces in the list of installed operators and select the Uninstall Operator option in the Actions drop-down menu on the top right.
- In the Home > Projects section, navigate to the project containing the CodeReady Workspaces instance, and select the Delete Project option in the Actions drop-down menu on the top right.
6.2. Uninstalling CodeReady Workspaces after OperatorHub installation using OpenShift CLI Link kopierenLink in die Zwischenablage kopiert!
This section provides instructions on how to uninstall a CodeReady Workspaces instance using oc
commands.
Prerequisites
- CodeReady Workspaces 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 CodeReady Workspaces instance from a cluster:
Sign in to the cluster:
oc login -u <username> -p <password> <cluster_URL>
$ oc login -u <username> -p <password> <cluster_URL>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Switch to the project where the CodeReady Workspaces instance is deployed:
oc project <codeready-workspaces_project>
$ oc project <codeready-workspaces_project>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Obtain the CodeReady Workspaces cluster name. The following shows a cluster named
red-hat-codeready-workspaces
:oc get checluster
$ oc get checluster NAME AGE red-hat-codeready-workspaces 27m
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Delete the CodeReady Workspaces cluster:
oc delete checluster red-hat-codeready-workspaces
$ oc delete checluster red-hat-codeready-workspaces checluster.org.eclipse.che "red-hat-codeready-workspaces" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Obtain the name of the CodeReady Workspaces cluster service version (CSV) module. The following detects a CSV module named
red-hat-codeready-workspaces.v2.5
:oc get csv
$ oc get csv NAME DISPLAY VERSION REPLACES PHASE red-hat-codeready-workspaces.v2.5 Red Hat CodeReady Workspaces 2.5 red-hat-codeready-workspaces.v2.4 Succeeded
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Delete the CodeReady Workspaces CSV:
oc delete csv red-hat-codeready-workspaces.v2.5
$ oc delete csv red-hat-codeready-workspaces.v2.5 clusterserviceversion.operators.coreos.com "red-hat-codeready-workspaces.v2.5" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
6.3. Uninstalling CodeReady Workspaces after crwctl installation Link kopierenLink in die Zwischenablage kopiert!
This section describes how to uninstall an instance of Red Hat CodeReady Workspaces that was installed using the crwctl
tool.
Prerequisites
-
The
crwctl
tool is available. -
The
oc
tool is available. -
The
crwctl
tool installed the CodeReady Workspaces instance on OpenShift.
Procedure
Sign in to the OpenShift cluster:
oc login -u <username> -p <password> <cluster_URL>
$ oc login -u <username> -p <password> <cluster_URL>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Export the name of the CodeReady Workspaces namespace you want to remove:
export codereadyNamespace=<codeready-namespace-to-remove>
$ export codereadyNamespace=<codeready-namespace-to-remove>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Export your user access token and Keycloak URLs:
export KEYCLOAK_BASE_URL="http://${KEYCLOAK_URL}/auth"
$ export KEYCLOAK_BASE_URL="http://${KEYCLOAK_URL}/auth"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow Stop the server using the UAT:
crwctl/bin/crwctl server:stop -n ${codereadyNamespace} --access-token=$USER_ACCESS_TOKEN
$ crwctl/bin/crwctl server:stop -n ${codereadyNamespace} --access-token=$USER_ACCESS_TOKEN
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Delete your project and your CodeReady Workspaces deployment:
oc project ${codereadyNamespace}
$ oc project ${codereadyNamespace}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow oc delete deployment codeready-operator
$ oc delete deployment codeready-operator
Copy to Clipboard Copied! Toggle word wrap Toggle overflow oc delete checluster codeready-workspaces
$ oc delete checluster codeready-workspaces
Copy to Clipboard Copied! Toggle word wrap Toggle overflow oc delete project ${codereadyNamespace}
$ oc delete project ${codereadyNamespace}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that the removal was successful by listing the information about the project:
oc describe project ${codereadyNamespace}
$ oc describe project ${codereadyNamespace}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove a specified
ClusterRoleBinding
:oc delete clusterrolebinding codeready-operator
$ oc delete clusterrolebinding codeready-operator
Copy to Clipboard Copied! Toggle word wrap Toggle overflow