---
title: "Terminate a browser session"
method: DELETE
path: "/{sessionId}"
---

# Terminate a browser session

`DELETE /{sessionId}`

Terminates a remote browser session immediately. If the session is already ended this call is idempotent and still returns 204.

## Path parameters

- `sessionId` string, required — Session ID to terminate.

## Response `204`

Session terminated (or already ended).

## Other responses

- `400` — Invalid session ID
- `401` — Unauthorized - Invalid or missing API key
- `404` — Session not found or does not belong to the authenticated user
- `500` — Internal server error
- `502` — Failed to terminate session upstream

---

[API](https://skmtc.dev/tinyfish/apis/tinyfish-web-agent-automation-api.md) · [All operations](https://skmtc.dev/tinyfish/apis/tinyfish-web-agent-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tinyfish/tinyfish-web-agent-automation-api/revisions/bea716bc627d/schema)
