Migrating Data and Export/Import to Remake Schemas
import sanityClient from 'part:@sanity/base/client'const client = sanityClient.withConfig({apiVersion: '2019-05-28'})client
.delete({query: '*[_type == "product" && _id == "YOUR ID HERE"][0]'}).then(console.log)
.catch(console.error)
__experimental_actions: [/*'create',*/ 'update', /*'delete',*/ 'publish'] __experimental_actions: [/*'create',*/ 'update', /*'delete',*/ 'publish']Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.