🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Can I safely delete dataset B without affecting dataset A in Sanity?

2 replies
Last updated: Apr 16, 2024
Hi there! Thanks for making Sanity, it's a great product!
I can't find information about my problem in the docs, so I have the following question about how datasets in Sanity work:
- I have exported dataset A and imported it to dataset B
- However, since it references the same documents, when I delete a document in dataset B, it will also be deleted in dataset A
- I now want to use dataset B in a different way
- My question is: Can I safely delete dataset B so that it will not remove the documents from dataset A?
Apr 15, 2024, 8:13 AM
Datasets are separate entities, so even though you’re referencing documents there should be different versions of them in different datasets. Editing one dataset won’t have an effect on the other dataset.
The only time that isn’t the case is when you’re using cross-dataset references. Is that the case here?
Apr 15, 2024, 4:54 PM
Thank you for getting back. I can now delete documents in dataset B without affecting dataset A (which is how I expected it to work in first place) so the problem doesn't exist anymore. Not sure about the reason for this phenomena, maybe I clicked the wrong button...
Apr 16, 2024, 8:31 AM

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?