doctl harness-runtime workspace delete
Generated on 13 Nov 2026
from doctl version
v2.5.0
Usage
doctl harness-runtime workspace delete <workspace-id> [flags]Aliases
rmDescription
Permanently delete a persistent workspace and everything saved in it. This cannot be undone. In a terminal it asks first unless --force is given. With no terminal (a script, or --interactive=false) there is nobody to ask, so pass --force; without it the command stops and deletes nothing.
A workspace a session still holds cannot be deleted: remove the session, wait until the workspace is available again, then delete it. Removing a session never deletes its workspace. A workspace shows DELETING while its delete runs; once it finishes, the workspace no longer exists.
Example
doctl harness-runtime workspace delete 018f6f2a-3c1e-7b6a-9d4e-5a7b8c9d0e1fFlags
| Option | Description |
|---|---|
--force, -f |
Delete without asking first (required when there is no terminal to ask at) Default: false |
--help, -h |
Help for this command |
Related Commands
| Command | Description |
|---|---|
| doctl harness-runtime workspace | Manage persistent workspaces (files kept between sessions) |
Global Flags
| Option | Description |
|---|---|
--access-token, -t |
API V2 access token |
--api-url, -u |
Override default API endpoint |
--config, -c |
Specify a custom config file Default: |
--context |
Specify a custom authentication context name |
--http-retry-max |
Set maximum number of retries for requests that fail with a 429 or 500-level error
Default: 5 |
--http-retry-wait-max |
Set the minimum number of seconds to wait before retrying a failed request
Default: 30 |
--http-retry-wait-min |
Set the maximum number of seconds to wait before retrying a failed request
Default: 1 |
--interactive |
Enable interactive behavior. Defaults to true if the terminal supports it (default false)
Default: false |
--output, -o |
Desired output format [text|json] Default: text |
--region |
Datacenter region to address, for example 'mem1'. Selects the regional API host; defaults to ric1, which the region-less host serves. A resource is reachable only in the region that holds it. |
--show |
Reveal masked values, such as secrets, instead of hiding them. Values are unmasked automatically in CI
Default: false |
--trace |
Show a log of network activity while performing a command Default: false |
--verbose, -v |
Enable verbose output Default: false |