---
title: "Terminate a temporary session"
method: DELETE
path: "/cdp/sessions/{sessionId}"
tags: ["Remote CDP"]
---

# Terminate a temporary session

`DELETE /cdp/sessions/{sessionId}`

## Request

- Base URL: `https://api.adscrawl.net`
- URL: `https://api.adscrawl.net/cdp/sessions/{sessionId}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/adscrawl/apis/adscrawl-api/docs/cdp/sessions/:sessionId/delete.ts> (a function with typed inputs; its response is checked against the schema)

The session must belong to the current API key.

## Response `200`

Session terminated.

- object
  - `ok` boolean

## Other responses

- `default`: Error response. Typical statuses are 400 invalid input, 401 invalid authentication, 402 payment/credits required, 403 ownership mismatch, 404 missing resource, 409 state or quota conflict, 410 expired session, 429 rate/concurrency limit, 500 internal failure, 502 upstream failure, 503 capacity/runtime unavailable, or 504 timeout. Not every status applies to every operation. Use HTTP status and code when present.

---

[API](https://skmtc.dev/adscrawl/apis/adscrawl-api.md) - [All operations](https://skmtc.dev/adscrawl/apis/adscrawl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/adscrawl/apis/adscrawl-api/revisions/aa45d0651921?raw)
