---
title: "Delete an Anthropic Message Batch"
method: DELETE
path: "/v1/messages/batches/{id}"
tags: ["Anthropic"]
---

# Delete an Anthropic Message Batch

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

## Request

- Base URL: `https://api.nano-gpt.com/api`
- URL: `https://api.nano-gpt.com/api/v1/messages/batches/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Processing must have ended; active batches return 409. Deletion hides the batch from the native NanoGPT API. It does not reverse usage charges or promise deletion of Anthropic-retained data.

## Path parameters

- `id` string, required

## Response `200`

Deleted Message Batch

- AnthropicMessageBatchDeleted
  - `id` string, required
  - `type` 'message_batch_deleted', required

## Other responses

- `401`: Anthropic Messages API error response
- `404`: Anthropic Messages API error response
- `409`: Anthropic Messages API error response

## Changes

- **2026-11-03** `cc8b07d75689`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nano-gpt/apis/nanogpt-api/changes/v1/messages/batches/:id/delete.md)

---

[API](https://skmtc.dev/nano-gpt/apis/nanogpt-api.md) - [All operations](https://skmtc.dev/nano-gpt/apis/nanogpt-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nano-gpt/apis/nanogpt-api/revisions/cc8b07d75689?raw)
