Skip to main content
DELETE
/
sessions
/
:id
Delete Session
curl --request DELETE \
  --url https://api.example.com/sessions/:id
{
  "ok": true
}
Delete a session by its session ID.

Endpoint

DELETE /sessions/:id

Path Parameters

id
string
required
The session ID (format: sess_<random-token>)

Response

ok
boolean
required
Whether the deletion was successful

Example Request

curl -X DELETE https://control.wormkey.io/sessions/sess_abc123xyz789

Example Response

{
  "ok": true
}

Behavior

  • Removes the session from the control plane’s in-memory store
  • Does not notify connected clients (they will discover the session is gone on next request)
  • Cannot be undone
In v0, sessions are stored in memory and will be lost when the control plane restarts.

Use Cases

  • Clean up expired sessions
  • Free resources after a tunnel is closed
  • Administrative session management

Build docs developers (and LLMs) love