Message Batches API adds a delete endpoint
Batches can now be deleted through a new endpoint in the Message Batches API, rather than waiting for results to expire on their own.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact Worth knowingIf data-retention rules constrain how long batch inputs and outputs can sit server-side, you can now delete batches on completion instead of waiting for expiry. Worth adding to your retention policy documentation.
Engineer
What to change, what breaks, what to test Worth knowingCall the batch delete endpoint after you've fetched results so inputs and outputs aren't retained until expiry. In-progress batches must be cancelled first, then deleted — handle that ordering in cleanup jobs.
General consumer
Using the Claude apps, not the API No impactNothing to do — this is an API-only change and does not affect the Claude apps.
On December 19, 2024 the Message Batches API gained a delete endpoint, so a batch and its results can be removed once processed — or cancelled work cleaned up — instead of being left until expiry.
This matters mainly for data-retention rules: batch inputs and outputs are stored server-side for a period, and deletion gives callers a way to shorten that. Batches that are still in progress must be cancelled before they can be deleted.
API surface
| Parameter | Change | Breaking | Models |
|---|---|---|---|
DELETE /v1/messages/batches/{id} | added | no |
Terms on this page: Batch processing