Cancel all jobs in a batch processing operation. ## Headers | Name | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | string | Yes | Bearer token authentication | ## Path Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `batch_id` | string | Yes | Batch identifier | ## Response **Status**: `200 OK` | Field | Type | Description | | --- | --- | --- | | `success` | boolean | Always true for successful requests | | `message` | string | Success message | | `batch_id` | string | Cancelled batch identifier | Cancel Batch ```bash curl -X DELETE https://api.aitronos.com/api/v1/scrape/batch/batch_xyz789 \ -H "X-API-Key: $FREDDY_API_KEY" ``` ```python import os import requests api_key = os.environ["FREDDY_API_KEY"] batch_id = "batch_xyz789" response = requests.delete( f"https://api.aitronos.com/api/v1/scrape/batch/{batch_id}", headers={"X-API-Key": api_key} ) data = response.json() print(data['message']) ``` ```javascript const axios = require('axios'); const apiKey = process.env.FREDDY_API_KEY; const batchId = 'batch_xyz789'; axios.delete(`https://api.aitronos.com/api/v1/scrape/batch/${batchId}`, { headers: { 'X-API-Key': apiKey } }) .then(response => { console.log(response.data.message); }); ``` **Response** `200 OK` ```json { "success": true, "message": "Batch cancelled successfully", "batch_id": "batch_xyz789" } ```