Would like to change the URL of my deployed sanity studio. Will sanity undeploy affect the dataset at all? Or only the URL?
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:
- Run
sanity undeployto remove the current Studio URL - Run
sanity deployagain to choose a new hostname
Your dataset will remain completely untouched throughout this process!
Show original thread2 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.