Delete a session by its session ID.
Endpoint
Path Parameters
The session ID (format: sess_<random-token>)
Response
Whether the deletion was successful
Example Request
curl -X DELETE https://control.wormkey.io/sessions/sess_abc123xyz789
Example Response
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