此内容没有您所选择的语言版本。

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.

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

  1. Navigate to the OpenShift web console and select the Administrator Perspective.
  2. In the Home > Projects section, navigate to the project containing the CodeReady Workspaces instance.

    Note

    The default project name is <openshift-workspaces>.

  3. In the Operators > Installed Operators section, click Red Hat CodeReady Workspaces in the list of installed operators.
  4. 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.

    Note

    The default Red Hat CodeReady Workspaces checluster Custom Resource name is <codeready-workspaces>.

  5. 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.
  6. 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.

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:

  1. Sign in to the cluster:

    $ oc login -u <username> -p <password> <cluster_URL>
    Copy to Clipboard Toggle word wrap
  2. Switch to the project where the CodeReady Workspaces instance is deployed:

    $ oc project <codeready-workspaces_project>
    Copy to Clipboard Toggle word wrap
  3. Obtain the checluster Custom Resource name. The following shows a checluster Custom Resource named codeready-workspaces:

    $ oc get checluster
    NAME          AGE
    codeready-workspaces   27m
    Copy to Clipboard Toggle word wrap
  4. Delete the CodeReady Workspaces cluster:

    $ oc delete checluster codeready-workspaces
    checluster.org.eclipse.che "codeready-workspaces" deleted
    Copy to Clipboard Toggle word wrap
  5. Obtain the name of the CodeReady Workspaces cluster service version (CSV) module. The following detects a CSV module named codeready.v2.14:

    $ oc get csv
    NAME                 DISPLAY       VERSION   REPLACES             PHASE
    codeready.v2.14   Red Hat CodeReady Workspaces   2.14     codeready.v2.13   Succeeded
    Copy to Clipboard Toggle word wrap
  6. Delete the CodeReady Workspaces CSV:

    $ oc delete csv codeready.v2.14
    clusterserviceversion.operators.coreos.com "codeready.v2.14" deleted
    Copy to Clipboard Toggle word wrap

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

  1. Sign in to the OpenShift cluster:

    $ oc login -u <username> -p <password> <cluster_URL>
    Copy to Clipboard Toggle word wrap
  2. Export the name of the CodeReady Workspaces namespace to remove:

    $ export codereadyNamespace=<codeready-namespace-to-remove>
    Copy to Clipboard Toggle word wrap
  3. Export your user access token and Keycloak URLs:

    $ export KEYCLOAK_BASE_URL="http://$KEYCLOAK_URL/auth"
    Copy to Clipboard Toggle word wrap
    $ export USER_ACCESS_TOKEN=$(curl -X POST $KEYCLOAK_BASE_URL/realms/codeready/protocol/openid-connect/token \
                           -H "Content-Type: application/x-www-form-urlencoded" \
                           -d "username=admin" \
                           -d "password=admin" \
                           -d "grant_type=password" \
                           -d "client_id=codeready-public" | jq -r .access_token)
    Copy to Clipboard Toggle word wrap
  4. Stop the server using the UAT:

    $ crwctl/bin/crwctl server:stop -n "$codereadyNamespace" --access-token=$USER_ACCESS_TOKEN
    Copy to Clipboard Toggle word wrap
  5. Delete your project and your CodeReady Workspaces deployment:

    $ oc project "$codereadyNamespace"
    Copy to Clipboard Toggle word wrap
    $ oc delete deployment codeready-operator
    Copy to Clipboard Toggle word wrap
    $ oc delete checluster codeready-workspaces
    Copy to Clipboard Toggle word wrap
    $ oc delete project "$codereadyNamespace"
    Copy to Clipboard Toggle word wrap
  6. Verify that the removal was successful by listing the information about the project:

    $ oc describe project "$codereadyNamespace"
    Copy to Clipboard Toggle word wrap
  7. Remove a specified ClusterRoleBinding:

    $ oc delete clusterrolebinding codeready-operator
    Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat