Delete a Message Batch
/v1/messages/batches/{message_batch_id}?beta=true Delete a Message Batch.
Message Batches can only be deleted once they've finished processing. If you'd like to delete an in-progress batch, you must first cancel it.
Learn more about the Message Batches API in our user guide
Parameters
path Path Parameters
| Name | Type |
|---|---|
message_batch_id
required
ID of the Message Batch. | string |
header Header Parameters
| Name | Type |
|---|---|
anthropic-beta Optional header to specify the beta version(s) you want to use. To use multiple betas, use a comma separated list like | string |
anthropic-version The version of the Claude API you want to use. Read more about versioning and our version history here. | string |
x-api-key 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. | string |
Responses
Successful Response
id: string;
type: "message_batch_deleted";
}
Client Errors
Error response.
See our errors documentation for more details.
error:
request_id: string | null;
type: "error";
}