Skip to main content
DELETE
/
browser
/
sessions
/
{id}
Delete Session
curl --request DELETE \
  --url https://api.example.com/browser/sessions/{id}

Overview

Tears down the browser session, kills the underlying sandbox VM, and stops billing for session time. Idempotent within the 404 boundary — a second call on the same ID returns 404.

Path Parameters

id
string
required
Browser session ID (UUID).

Example Request

curl -X DELETE "https://api.scrapengine.io/api/v1/browser/sessions/baa3f390-fa6e-4a24-b84a-a575a5f3a9c7" \
  -H "Authorization: Bearer $SCRAPENGINE_API_KEY"

Response

Success Response (204)

Empty body. The session has been destroyed.

Error Responses

StatusDescription
401Unauthorized — invalid or missing API key.
404Session not found or not owned by the caller.