Build with Sanity MCP in Replit. Prizes up for grabs! Submit by June 14

Would like to change the URL of my deployed sanity studio. Will sanity undeploy affect the dataset at all? Or only the URL?

2 repliesLast updated: Nov 29, 2025

Quick question — have never done this before. Would like to change the URL of my deployed sanity studio. I know you can do
sanity undeploy
 — will that affect the dataset at all? Or only the URL?
AI Update

Good news! Running sanity undeploy will only affect the URL — it won't touch your dataset at all.

According to the Sanity deployment documentation, the sanity undeploy command is used to change the hostname later or remove the Studio from the web. When you run it, you can choose a new hostname the next time you deploy.

Your data lives in the Content Lake (the dataset), which is completely separate from how your Studio is hosted. The undeploy command only removes the deployed Studio files from the *.sanity.studio URL — it doesn't delete, modify, or affect your content in any way.

So you're safe to:

Your dataset will remain completely untouched throughout this process!

Show original thread
2 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