Skip to main content
DELETE
Delete a Message Batch
Use ?beta=true with anthropic-beta: message-batches-2024-09-24 for the beta request and response shapes shown here.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-beta
string
required

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

The version of the OMA API you want to use.

Read more about versioning and our version history here.

Path Parameters

message_batch_id
string
required

ID of the Message Batch.

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true

Response

Successful Response

id
string
required

ID of the Message Batch.

Example:

"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"