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
queryDocumentsPost
Count how many documents match the filter so the deletion blast radius is known before any write.
2
deleteMatches
mutateDocuments
Issue a delete mutation that targets every document selected by the GROQ query.