Claude · Arazzo Workflow
Claude Cancel and Delete Batch
Version 1.0.0
Submit a batch, request cancellation, poll until it ends, then delete it.
View Spec
View on GitHub
Artificial IntelligenceChatbotsConversational AIGenerative AILarge Language ModelsMachine-LearningNatural Language ProcessingArazzoWorkflows
Provider
Workflows
cancel-and-delete-batch
Create a batch, cancel it, wait for it to end, then delete it.
Submits a batch, requests cancellation, polls retrieveMessageBatch until processing ends, then deletes the batch.
1
submitBatch
Submit the batch of message-creation requests, capturing its id and initial processing status.
2
requestCancel
Request cancellation of the in-progress batch. Cancellation is asynchronous, so the batch moves to "canceling" before reaching "ended".
3
pollUntilEnded
Poll the batch status. While processing_status is not "ended", retry after a delay; once ended, proceed to delete the batch.
4
deleteBatch
Delete the batch now that its processing has ended, freeing the resource.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.