Elimina un batch di messaggi
DELETE/v1/messages/batches/{message_batch_id}
Elimina un batch di messaggi.
I batch di messaggi possono essere eliminati solo dopo che hanno terminato l'elaborazione. Se desideri eliminare un batch in corso, devi prima annullarlo.
Scopri di più sull'API Message Batches nella nostra guida per l'utente
Path parameters
Headers
Returns
Errors
Any method can also return the general HTTP errors.
Each code below is the value of error.details.error_code in the response body.
Elimina un batch di messaggi
curl https://api.anthropic.com/v1/messages/batches/$MESSAGE_BATCH_ID \
-X DELETE \
-H 'anthropic-version: 2026-10-21' \
-H "Authorization: Bearer $ANTHROPIC_API_KEY"Response 200
{
"id": "msgbatch_013Zva2CMHLNnXjNJJKqJ2EF",
"type": "message_batch_deleted"
}Returns Examples
Response 200
{
"id": "msgbatch_013Zva2CMHLNnXjNJJKqJ2EF",
"type": "message_batch_deleted"
}