Joint session with Vercel: How to build intelligent storefronts (May 15th)

Missing Unpublish Option in Sanity Studio v2.25

7 repliesLast updated: Nov 29, 2025

Hi all, I'm trying to unpublish a document in Sanity studio but I don't seem to have the option to do so?Dependencies and versions:

    "@sanity/base": "^2.25.4",
    "@sanity/color-input": "^2.25.4",
    "@sanity/components": "^2.14.0",
    "@sanity/core": "^2.25.0",
    "@sanity/default-layout": "^2.25.4",
    "@sanity/default-login": "^2.24.1",
    "@sanity/desk-tool": "^2.25.4",
    "@sanity/vision": "^2.25.4",
This is what my options look like:
AI Update

I can see you're on Sanity Studio v2 and missing the unpublish option! This is almost certainly because you have liveEdit: true set in your document schema.

When a document schema has liveEdit: true, Sanity treats it as "live only" - meaning changes are saved directly to the published version without creating drafts. Since there's no draft/published distinction for these documents, the unpublish action doesn't appear in the document menu.

To fix this:

Check your schema definition for the document type you're trying to unpublish. Look for something like this:

export default {
  name: 'yourDocumentType',
  type: 'document',
  liveEdit: true,  // <-- This is the culprit
  fields: [
    // your fields
  ]
}

Remove or set liveEdit: false:

export default {
  name: 'yourDocumentType',
  type: 'document',
  // liveEdit: false is the default, so you can just remove the line
  fields: [
    // your fields
  ]
}

After removing liveEdit: true and restarting your Studio, you should see the unpublish option appear in the document menu. The document will now use Sanity's draft system, where changes are saved as drafts (with drafts. prefix) before being published.

Important notes:

The unpublish button will reappear once you've removed the liveEdit: true setting from your schema!

Show original thread
7 replies

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.

Related contributions