---
title: "Delete Batch Sessions"
method: DELETE
path: "/v1/batch-sessions/{batch_id}"
tags: ["Batch Sessions"]
---

# Delete Batch Sessions

`DELETE /v1/batch-sessions/{batch_id}`

## Request

- Base URL: `https://api.anchorbrowser.io`
- URL: `https://api.anchorbrowser.io/v1/batch-sessions/{batch_id}`
- Auth: API key in header `anchor-api-key`

Deletes all sessions in a batch. Running sessions will be terminated
and all session data will be removed.

## Path parameters

- `batch_id` string, uuid, required

## Response `200`

Batch sessions deleted successfully

- object
  - `data` BatchSessionDeleteResponseSchema
    - `batch_id` string, uuid: Unique identifier for the batch
    - `deleted_sessions` integer: Number of sessions successfully deleted
    - `failed_deletions` integer: Number of sessions that failed to delete
    - `errors` object[]: Details of deletion failures (only present if there were failures)
      - `session_id` string: ID of the session that failed to delete
      - `error` string: Error message
    - `message` string: Summary message of the deletion operation

## Other responses

- `401`: Invalid API Key
- `404`: Batch not found
- `500`: Internal server error

## Changes

- **2026-10-16** `b3bfdb98c79e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/changes/v1/batch-sessions/:batch_id/delete.md)

---

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