> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Context.dev: Contextdev Delete Batch

> Delete a batch. Context.dev Contextdev Delete Batch reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Delete a batch.

<Info>
  Tool ID: `contextdev_delete_batch`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'contextdev_delete_batch',
  {
    "batch_id": "batch_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute contextdev_delete_batch --input '{
  "batch_id": "batch_123"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "id": "id_123",
    "deleted": true,
    "key_metadata": {}
  }
}
```

Use `deepline tools get contextdev_delete_batch --json` for the latest machine-readable contract.

## Input reference

Permanently delete a finished batch and its stored results. Active batches must settle first.

| Name               | Type     | Required | Default | Details                                |
| ------------------ | -------- | -------- | ------- | -------------------------------------- |
| `payload.batch_id` | `string` | Yes      | —       | ID of the batch to retrieve or cancel. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Permanently delete a finished batch and its stored results. Active batches must settle first.",
    "properties": {
      "batch_id": {
        "type": "string",
        "description": "ID of the batch to retrieve or cancel."
      }
    },
    "required": [
      "batch_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name                       | Type      | Required | Default | Details |
| -------------------------- | --------- | -------- | ------- | ------- |
| `result.data`              | `object`  | Yes      | —       | —       |
| `result.data.id`           | `string`  | No       | —       | —       |
| `result.data.deleted`      | `boolean` | No       | —       | —       |
| `result.data.key_metadata` | `object`  | No       | —       | —       |
| `result.meta`              | `object`  | No       | —       | —       |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "deleted": {
            "type": "boolean"
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Context.dev provider guide](/docs/providers/contextdev/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
