Error when Removing Document Type from the Schema

6 replies
Last updated: May 1, 2020
I had a type A that referenced type B. I deleted the only type A document I had created, and now want to remove type B from the schema but I’m getting an error.
May 1, 2020, 7:04 PM
What kind of error are you getting?
May 1, 2020, 7:10 PM
Ah, nevermind, I figured it out. Was updating the schema before the schemaType. Oops 🙂
May 1, 2020, 7:10 PM
had to remove the reference in the schemaType 🙂
May 1, 2020, 7:10 PM
Aight! To be clear: deletion of documents are instant
May 1, 2020, 7:11 PM
Oh, I saw a little toast message that I didn’t read thoroughly that said something about revisions.
May 1, 2020, 7:11 PM
You can recover them in the studio only when you are in the same screen, because the studio has the document in memory 🙂
May 1, 2020, 7:11 PM

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?