Skip to content

Instantly share code, notes, and snippets.

@3200pro
Last active December 26, 2020 21:36
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/1f02c80ea47735e52ef6eec2cd9807bf to your computer and use it in GitHub Desktop.
Save 3200pro/1f02c80ea47735e52ef6eec2cd9807bf to your computer and use it in GitHub Desktop.
Sanity.io Delete Posts
curl 'https://<Project ID>.api.sanity.io/v1/data/mutate/production' \
-H 'Authorization: Bearer <Token>' \
-H 'Content-Type: application/json' \
--data-binary '{"mutations":[
{
"delete": {
"id": "<Post ID>"
}
}
]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment