Issue with deleting objects in Sanity.io UI, objects still appear even after deletion.
Good morning! This sounds like a caching issue in Sanity Studio. Here are the most common solutions:
Quick fixes to try first:
- Hard refresh your browser - Press
Ctrl+Shift+R(Windows/Linux) orCmd+Shift+R(Mac) to clear the browser cache and reload the Studio - Clear browser cache completely - Sometimes a hard refresh isn't enough, so clear your browser's cache and cookies for the Studio URL
- Try incognito/private browsing - Open Studio in an incognito window to rule out browser caching issues
If those don't work:
Restart your development server - If you're running Studio locally, stop and restart
sanity devor your build processCheck your dataset - Verify the documents are actually deleted by querying your dataset directly using Vision (the GROQ query tool in Studio) with a query like:
*[_id == "your-document-id"]If this returns an empty array, the document is truly deleted
Clear Studio's local storage - Open browser DevTools → Application/Storage tab → Local Storage → find your Studio's domain and clear it
Possible causes:
- Browser caching - Most common cause, especially if you're seeing the document in lists but it's empty when clicked
- Draft vs published versions - If you deleted only the draft (
drafts.document-id) but not the published version (or vice versa), you might still see remnants - Studio version issues - Rarely, older Studio versions had caching bugs that were resolved in updates
If the issue persists:
Try checking the Network tab in your browser's DevTools to see if Studio is actually fetching fresh data from the API or serving cached responses. You should see requests to https://[your-project-id].api.sanity.io/... when navigating.
The fact that the data appears blank when clicked strongly suggests the documents are deleted from the database but your browser is showing a cached list view. A hard refresh should resolve this in most cases!
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.