Sanity · Arazzo Workflow
Sanity Bulk Delete by Query
Version 1.0.0
Count documents matching a GROQ filter, then delete them in one mutation.
View Spec
View on GitHub
Headless CMSContent ManagementGROQReal-TimeStructured ContentDeveloper PlatformArazzoWorkflows
Provider
Workflows
bulk-delete-by-query
Delete all documents matching a GROQ filter after counting them.
Counts documents matching the filter, and when the count is positive, deletes every matching document with a query-based delete mutation.
1
countMatches
Count how many documents match the filter so the deletion blast radius is known before any write.
2
deleteMatches
Issue a delete mutation that targets every document selected by the GROQ query.
Source API Descriptions
openapi
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.