Home / Servers / DigitalOcean API / harness_delete_workspace

Delete a persistent workspace.

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Delete a persistent workspace. Permanently deletes a persistent workspace and its files. Only a workspace that is AVAILABLE or FAILED can be deleted; remove the session that holds it first. Workspaces are never deleted… [DELETE /v2/agents/workspaces/{workspace_id}]

Name on the gateway: digitalocean_api__harness_delete_workspace · may change things.

Parameters

NameTypeDescription
workspace_id requiredstringThe workspace ID. Workspace names are not accepted.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__harness_delete_workspace",
  "arguments": {
    "workspace_id": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the delete a persistent workspace. tool with workspace_id set to ….

More from DigitalOcean API