Remove a workspace from the command line

Remove a workspace from the command line by deleting its DevWorkspace custom resource.

Before you begin

About this task

Warning:

Deleting the DevWorkspace custom resource also deletes other workspace resources if they were created by OpenShift Dev Spaces: for example, the referenced DevWorkspaceTemplate and per-workspace PersistentVolumeClaims.

Procedure

Run the following command to remove a workspace:
$ oc delete devworkspace <workspace_name> -n <user_namespace>