Draft document deleted via CLI still showing in desk tool's main document list
This is a known caching issue in older versions of Sanity Studio where the desk tool's document list can get out of sync with the actual Content Lake data. Since you've confirmed via CLI and Vision that the document doesn't exist, this is purely a frontend/cache issue in Studio.
Here are several approaches to resolve this, in order of what to try first:
1. Hard refresh the browser Try a hard refresh (Ctrl+Shift+R or Cmd+Shift+R) to clear the browser cache. The desk tool maintains some client-side caching that can become stale.
2. Clear browser local storage Open your browser's developer tools, go to Application/Storage → Local Storage, and clear the storage for your Studio domain. This will force the desk tool to rebuild its cache from scratch.
3. Restart the Studio dev server
If you're running sanity dev, stop and restart it. Sometimes the Studio's internal state can get cached during development.
4. Check for phantom published version Even though you deleted the draft, there might be a published version still lingering. Try explicitly deleting both versions via the CLI:
sanity documents delete drafts.YOUR_DOCUMENT_ID
sanity documents delete YOUR_DOCUMENT_ID5. Upgrade Studio (most important) You're running v2.34, which is quite old. Many caching and sync issues were fixed in later versions. Studio v3 (and now v4) have significantly improved document list handling and real-time synchronization. Consider migrating to Studio v3 or at least upgrading to the latest v2 version if immediate migration isn't feasible.
Why this happens: In older Studio versions, the desk tool's document list uses a combination of real-time listeners and cached queries. When documents are deleted outside of Studio (via CLI or client), the real-time listeners sometimes don't properly invalidate the cached list, leaving "ghost" entries visible.
If none of these work, try clicking on the ghost document in the list - it should fail to load and might trigger a cache invalidation that removes it from the list.
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.