👀 Our most exciting product launch yet 🚀 Join us May 8th for Sanity Connect

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 remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?