
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeNo, removing a schema in Sanity does not automatically delete related documents.
This is actually a deliberate design choice that Sanity considers a feature. When you remove or change a schema type in your Sanity Studio configuration, the existing documents in your Content Lake remain untouched. This helps prevent unintended data loss and gives you full control over how to handle existing content.
Sanity treats schema changes similar to how databases handle data model changes - they should be intentional, reproducible, and part of your development workflow. Your content model and your actual data are kept separate, so removing a document type from your schema won't cascade into deleting the actual documents.
When you remove a schema type:
_type still exist in your datasetsanity documents validate CLI command will report them as documents with a _type not covered in your schema configurationYou have several options:
Keep them - If you might need the data later, just leave them. They don't hurt anything.
Delete them manually - Use the HTTP API or write a script to delete documents of that type.
Migrate them - Use content migrations to transform them into a different document type or structure.
Mark as deprecated - Before removing a schema, you can mark it as deprecated with a reason, which will show warnings in Studio but keep everything accessible.
This separation between schema and data gives you flexibility to evolve your content model without risking accidental data loss.
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.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store