
I'm creating a program that has data in a database connected to a user. In the future, this data will possibly be shared with other users (which will mean that multiple users will be given read and or edit permissions on documents).
How do I go about correctly deleting documents relating to the original creator, should there be an attribute in the documents that correlates to the ID of the original creator, so that when a user deletes their account, I can filter through all documents that specific user can access and delete them?
I essentially want to future proof so that I'm not deleting documents which a user has been added to, not necessarily created.
This is sort of two questions in one:
- How do I delete documents relating to a specific user before I delete their account? (Is there a function for it)
- How do I do it if multiple people have read / edit document permissions?
Sorry if this is confusing, if you don't understand anything just let me know and I'll try and explain it better.
Recommended threads
- Why "You’ve reached the limit for your G...
Why did Appwrite send me this alert when the usage reached 10605%? Is it too late? Why not when reached 100% usage? And I can not pay for more usage described ...
- Subdomain failed verification
So I wanted to do a custom subdomain, because local storage doesn't work for me, but I've tried it a long time ago, it didn't work for me, and now I'm trying ag...
- Sites 30MB limit from GitHub
I’m deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it’s in a subdirectory with the root being an html landin...
