# spicedb

Steve Lillis

11/14/2022, 8:51 AM
To use an example scenario. Users can create, for example, folders within folders. So if there's a folder hierarchy A -> B -> C -> D. A is the root folder. User 1 deletes folder B when User 2 creates a sub-folder X inside C, how would you recommend we prevent orphan relationship scenario where A -> B no longer exists, and many of the other relationships were found and deleted, but a race occurred so C -> X still exists, so direct requests for C respond with the relationships to X?