Home / Servers / DigitalOcean API / harness_delete_session

DestroySession tears down the sandbox and marks the session DESTROYED.

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

DestroySession tears down the sandbox and marks the session DESTROYED. Persistent workspace contents are retained per tenant policy. A persistent workspace the session holds is saved and kept: it goes to RELEASING while the files are saved and then back to AVAILABLE.… [DELETE /v2/agents/sessions/{session_id}]

Name on the gateway: digitalocean_api__harness_delete_session · may change things.

Parameters

NameTypeDescription
session_id requiredstringThe session UUID.

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_session",
  "arguments": {
    "session_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 destroysession tears down the sandbox and marks the session destroyed. tool with session_id set to ….

More from DigitalOcean API