Deleting lost data in Sanity.io using the API
client.delete('bike-123')
.then(res => {
console.log('Bike deleted')
})
.catch(err => {
console.error('Delete failed: ', err.message)
})client.delete('bike-123')
.then(res => {
console.log('Bike deleted')
})
.catch(err => {
console.error('Delete failed: ', err.message)
})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.