Deleted objects still showing in Sanity UI with blank data

31 replies
Last updated: Nov 29, 2025
good mornin....for some reason I cannot delete objects. I deleted them but they still show in the UI. but when clicked the data is all blank for all the objects as tho it was deleted from the db but not from being displayed in the UI for some reason
AI Update

Good morning! This sounds like a caching issue in Sanity Studio. Here are the most common solutions:

Quick fixes to try first:

  1. Hard refresh your browser - Press Ctrl+Shift+R (Windows/Linux) or Cmd+Shift+R (Mac) to clear the browser cache and reload the Studio
  2. Clear browser cache completely - Sometimes a hard refresh isn't enough, so clear your browser's cache and cookies for the Studio URL
  3. Try incognito/private browsing - Open Studio in an incognito window to rule out browser caching issues

If those don't work:

  1. Restart your development server - If you're running Studio locally, stop and restart sanity dev or your build process

  2. Check 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

  3. 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!

Show original thread
31 replies

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.

Was this answer helpful?