Batch
Delete a batch
Changed onDeletes a batch in a terminal status (completed, failed, expired, or cancelled) and its stored requests and results. Batches still in progress return 409. Billing and usage records are kept. See the Batch API Quickstart.
delete/batches/{id}
Request
- Base URLhttps://openrouter.ai/api/v1
- AuthHTTP bearer
Path parameters
id, string required
The batch job id returned from submit.
Example:batch_abc123
Response
The batch was deleted; per-target outcomes are reported under deletion.
Batch Deleted Object required
Confirms a terminal batch was removed from the API and its OpenRouter-held artifacts purged. Deletion is not cancellation and does not erase billing or audit records.
deletion, Batch Deletion Targets required
OpenRouter cleanup and, when a provider was assigned, the upstream batch deletion outcome.
id, string required
object, 'batch' required
Example response
{
"deletion": {
"openrouter": "deleted",
"upstream": {
"provider": "OpenAI",
"status": "unsupported"
}
},
"id": "batch_abc123",
"object": "batch"
}Changes
- info
added the non-success response with the status
- info
- info
endpoint added
- info