> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-beta.getzep.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-beta.getzep.com/_mcp/server.

# Delete Batch

DELETE https://api.getzep.com/api/v2/batches/{batchId}

Delete a draft or invalid unprocessed batch. Processed batches cannot be deleted.

Reference: https://docs-beta.getzep.com/sdk-reference/batch/delete-batch

## Request

### Path parameters

- `batchId` (string, required) — The batch ID.

## Response

### 200

Deleted batch

- `message` (string, optional)

## Errors

### 400 Bad Request Error

Bad Request

- `message` (string, optional)

### 403 Forbidden Error

Forbidden

- `message` (string, optional)

### 404 Not Found Error

Not Found

- `message` (string, optional)

### 409 Conflict Error

Conflict

- `message` (string, optional)

### 500 Internal Server Error

Internal Server Error

- `message` (string, optional)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "message": "Batch 3f9a1b7c-8d4e-4f2a-9c3e-2b7d5f6a1e4c successfully deleted."
}
```