Repository Public
1---2title: Delete a Message Batch3url: https://platform.claude.com/docs/en/api/beta/messages/batches/delete4---56# Delete a Message Batch78**DELETE** `/v1/messages/batches/{message_batch_id}`910Delete a Message Batch.1112Message 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.1314Learn more about the Message Batches API in our [user guide](https://platform.claude.com/docs/en/build-with-claude/batch-processing)1516## Path parameters1718- `message_batch_id: string`1920 ID of the Message Batch.2122## Headers2324- `"anthropic-beta": optional array of AnthropicBeta`2526 Optional header to specify the beta version(s) you want to use.2728 - `string`2930 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 43 more`3132 - `"message-batches-2024-09-24"`3334 - `"prompt-caching-2024-07-31"`3536 - `"computer-use-2024-10-22"`3738 - `"computer-use-2025-01-24"`3940 - `"pdfs-2024-09-25"`4142 - `"token-counting-2024-11-01"`4344 - `"token-efficient-tools-2025-02-19"`4546 - `"output-128k-2025-02-19"`4748 - `"files-api-2025-04-14"`4950 - `"mcp-client-2025-04-04"`5152 - `"mcp-client-2025-11-20"`5354 - `"dev-full-thinking-2025-05-14"`5556 - `"interleaved-thinking-2025-05-14"`5758 - `"code-execution-2025-05-22"`5960 - `"extended-cache-ttl-2025-04-11"`6162 - `"context-1m-2025-08-07"`6364 - `"context-management-2025-06-27"`6566 - `"model-context-window-exceeded-2025-08-26"`6768 - `"skills-2025-10-02"`6970 - `"fast-mode-2026-02-01"`7172 - `"output-300k-2026-03-24"`7374 - `"user-profiles-2026-03-24"`7576 - `"user-profiles-2026-08-18"`7778 - `"user-profiles-2026-09-04"`7980 - `"advisor-tool-2026-03-01"`8182 - `"managed-agents-2026-04-01"`8384 - `"cache-diagnosis-2026-04-07"`8586 - `"dreaming-2026-04-21"`8788 - `"thinking-token-count-2026-05-13"`8990 - `"server-side-fallback-2026-06-01"`9192 - `"server-side-fallback-2026-07-01"`9394 - `"fallback-credit-2026-06-01"`9596 - `"fallback-credit-2026-07-01"`9798 - `"agent-memory-2026-07-22"`99100 - `"mid-conversation-tool-changes-2026-07-01"`101102 - `"compact-2026-01-12"`103104 - `"computer-use-2025-11-24"`105106 - `"mcp-tunnels-2026-06-22"`107108 - `"structured-outputs-2025-11-13"`109110 - `"task-budgets-2026-03-13"`111112 - `"thinking-display-updates-2026-08-18"`113114 - `"ce-user-management-2026-07-13"`115116 - `"mid-conversation-output-config-2026-07-01"`117118 - `"thinking-binding-controls-2026-08-01"`119120 - `"mid-conversation-system-clear-at-2026-08-21"`121122 - `"compact-2026-09-04"`123124- `"anthropic-workspace-id": optional string`125126## Returns127128- `BetaDeletedMessageBatch object`129130 - `type: "message_batch_deleted"`131132 Deleted object type.133134 For Message Batches, this is always `"message_batch_deleted"`.135136 default: message_batch_deleted137138 - `id: string`139140 ID of the Message Batch.141142## Example143144```bash145curl https://api.anthropic.com/v1/messages/batches/$MESSAGE_BATCH_ID \146 -X DELETE \147 -H 'anthropic-version: 2023-06-01' \148 -H 'anthropic-beta: message-batches-2024-09-24' \149 -H "X-Api-Key: $ANTHROPIC_API_KEY"150```151152### Response (200)153154```json155{156 "id": "msgbatch_013Zva2CMHLNnXjNJJKqJ2EF",157 "type": "message_batch_deleted"158}159```160