
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThis is a tricky issue, and the fact that it happens consistently with one document type but not another is the key diagnostic clue. Since CLI deletion works fine, this points to something in your Studio configuration rather than a Content Lake issue.
Here are the most likely causes and how to debug them:
Since you have one document type that works correctly and one that doesn't, do a detailed diff of their schema definitions. Look specifically at:
If you have a custom structure configuration (in sanity.config.ts or a separate structure file), look for anything specific to the problematic document type:
This is your best diagnostic tool. Open browser DevTools → Network tab, then delete the draft. Watch for:
Filter the network requests to just show calls to api.sanity.io to reduce noise.
Look through your codebase for anything that might be subscribing to or maintaining a reference to documents of that type:
useFormValue or useDocumentStoreThere have been reports of Studio's presence system (which tracks who's editing what) sometimes causing unexpected behavior with drafts, though this is rare. The fact that the restored document has the same ID as the original is expected (drafts use drafts.{id} as their document ID), but the restoration itself is not normal behavior.
The network inspection is really your best bet here - it will show you exactly what operation is recreating the document and that will point you to the source of the problem in your configuration.
Have you noticed if the "restored" document appears immediately after deletion, or does it take a few seconds? That timing might also provide clues about whether it's a synchronous operation in your Studio code vs. something async.
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.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store