Home / Servers / DigitalOcean API / sessions_delete

Delete a Session

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

Delete a Session Deletes the session and its policy. Succeeds without deleting anything when the session does not exist or you cannot delete it, so repeating a delete also succeeds. A malformed session_urn is… [DELETE /v2/action-gateway/sessions/{session_urn}]

Name on the gateway: digitalocean_api__sessions_delete · may change things.

Parameters

NameTypeDescription
session_urn requiredstringURN of the session, for example do:managed_agent_session: .

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__sessions_delete",
  "arguments": {
    "session_urn": "…"
  }
}

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 session tool with session_urn set to ….

More from DigitalOcean API