Skip to content

Instantly share code, notes, and snippets.

@3200pro
Created December 26, 2020 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3200pro/b844df69b88ed4eed5bf56598ca65ab3 to your computer and use it in GitHub Desktop.
Save 3200pro/b844df69b88ed4eed5bf56598ca65ab3 to your computer and use it in GitHub Desktop.
Sanity-io-delete-posts.cli
curl 'https://<projectID>.api.sanity.io/v1/data/mutate/production' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
--data-binary '{"mutations":[
{
"delete": {
"query": "*[_type == 'post']"
}
}
]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment