---
title: "Delete message batch (Anthropic-compatible)"
method: DELETE
path: "/v1/messages/batches/{message_batch_id}"
tags: ["Anthropic"]
---

# Delete message batch (Anthropic-compatible)

`DELETE /v1/messages/batches/{message_batch_id}`

## Request

- Base URL: `https://api.tokenlab.sh`
- URL: `https://api.tokenlab.sh/v1/messages/batches/{message_batch_id}`
- Auth: HTTP bearer

Deletes an Anthropic Message Batch when deletion is supported for that batch.

## Path parameters

- `message_batch_id` string, required

## Response `200`

Deleted message batch

- AnthropicDeletedMessageBatch
  - `id` string, required: Deleted Message Batch identifier
  - `type` 'message_batch_deleted', required

## Other responses

- `400`: Bad Request - Invalid input
- `401`: Unauthorized - Invalid or missing API key
- `402`: Payment Required - Insufficient balance or quota exceeded
- `429`: Rate Limit Exceeded
- `500`: Internal Server Error
- `502`: Service Error

---

[API](https://skmtc.dev/tokenlab/apis/tokenlab-ai-gateway.md) · [All operations](https://skmtc.dev/tokenlab/apis/tokenlab-ai-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/tokenlab/apis/tokenlab-ai-gateway/revisions/3208bfbcda22?raw)
