📄 claude/api/deleting-message-batches

File: deleting-message-batches.md | Updated: 11/15/2025

Source: https://docs.claude.com/en/api/deleting-message-batches

Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills .

Claude Docs home pagelight logodark logo

US

English

Search...

Ctrl K

Search...

Navigation

Message Batches

Delete a Message Batch

Home Developer Guide API Reference Model Context Protocol (MCP) Resources Release Notes

cURL

cURL

Copy

curl -X DELETE https://api.anthropic.com/v1/messages/batches/msgbatch_01HkcTjaV5uDC8jWR4ZsDV8d \
     --header "x-api-key: $ANTHROPIC_API_KEY" \
     --header "anthropic-version: 2023-06-01"

200

4XX

Copy

{
  "id": "msgbatch_013Zva2CMHLNnXjNJJKqJ2EF",
  "type": "message_batch_deleted"
}

DELETE

/

v1

/

messages

/

batches

/

{message_batch_id}

cURL

cURL

Copy

curl -X DELETE https://api.anthropic.com/v1/messages/batches/msgbatch_01HkcTjaV5uDC8jWR4ZsDV8d \
     --header "x-api-key: $ANTHROPIC_API_KEY" \
     --header "anthropic-version: 2023-06-01"

200

4XX

Copy

{
  "id": "msgbatch_013Zva2CMHLNnXjNJJKqJ2EF",
  "type": "message_batch_deleted"
}

Headers

anthropic-beta

string[]

Optional header to specify the beta version(s) you want to use.

To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.

anthropic-version

string

required

The version of the Claude API you want to use.

Read more about versioning and our version history here .

x-api-key

string

required

Your unique API key for authentication.

This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the Console . Each key is scoped to a Workspace.

Path Parameters

message_batch_id

string

required

ID of the Message Batch.

Response

200

application/json

Successful Response

id

string

required

ID of the Message Batch.

Examples:

"msgbatch_013Zva2CMHLNnXjNJJKqJ2EF"

type

string

default:message_batch_deleted

required

Deleted object type.

For Message Batches, this is always "message_batch_deleted".

Allowed value: "message_batch_deleted"

Was this page helpful?

YesNo

Cancel a Message Batch Create a File

Assistant

Responses are generated using AI and may contain mistakes.