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 IntelligenceChatbotConversational 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
createMessageBatch
Submit the batch of message-creation requests, capturing its id and initial processing status.
2
requestCancel
cancelMessageBatch
Request cancellation of the in-progress batch. Cancellation is asynchronous, so the batch moves to "canceling" before reaching "ended".
3
pollUntilEnded
retrieveMessageBatch
Poll the batch status. While processing_status is not "ended", retry after a delay; once ended, proceed to delete the batch.
4
deleteBatch
deleteMessageBatch
Delete the batch now that its processing has ended, freeing the resource.