In my situation, I'm using a relationship between two documents with the 'Cascade - delete all...' option. The issue here is that a document would be deleted, but its related files would still be in storage, and I couldn't find any endpoint to query these files for deletion.
Your data is structured like this?
A -> B -> File
And you're deleting A which automatically deletes B?
Yes,
Ideally, when B is deleted, an event would be fired so that you can have a function that executes and deletes the files. Right now, it doesn't. We plan to add this in the future. you can upvote this issue to stay updated on this: https://github.com/appwrite/appwrite/issues/5375
Alright
Any solution for now?
no workaround at the moment
Recommended threads
- Create file is listing files instead of ...
This is a bit strange but, I cannot create files from within a funcion. I have tested with latest SDKs versions of node and python, both instead of creating the...
- Trouble Creating Database and Collection...
I’ve set up my project credentials (endpoint, project ID) and generated an API key. I’m currently focusing on creating only the database and collections (tables...
- login With OAuth Failed
login With OAuth Failed: when i cliick to login with any of the following (facebook, gmail or apple) am being redirected out of the app to enter my detail, afte...