Delete a Workspace
Delete a workspace
Deleting a workspace means to erase all state of an existing workspace and remove all traces of it within DevSpace. Depending on the DevSpace provider, this means either removing a docker container or deleting a whole virtual machine. DevSpace will automatically determine what specific action to take when a workspace is deleted.
Via DevSpace Desktop Application
In the 'Workspaces' view, click on the 'More Options' button and then on 'Delete'. This will delete the workspace.
If deletion fails because the Provider is not reachable anymore or another error has occurred, you can also force delete a workspace by checking the force checkbox. However, this means the workspace will only be deleted on the DevSpace side locally, and any error raised by the used provider will be ignored. Only use this option with caution as this might leave previously created resources behind.
Via DevSpace CLI
Run the following command to delete a workspace:
devspace delete my-workspace
If deletion fails because the Provider is not reachable anymore or another error has occurred, you can also force delete a workspace via:
devspace delete my-workspace --force
However, this means the workspace will only be deleted on the DevSpace side locally, and any error raised by the used provider will be ignored. Only use this option with caution as this might leave previously created resources behind.