How do I auto delete all documents created by user or any appwrite available api for that?
- You need to keep track of the user's documents, which might involve storing the user's ID or a reference to their documents.
- Set up a scheduled task or a background job that runs at specific intervals (e.g., daily or weekly) or maybe use a loop if there is no need for schedules. This task will fetch the list of documents associated with the user and delete them.
- Using https://appwrite.io/docs/client/databases?sdk=web-default#databasesDeleteDocument, you can delete them one by one
Please upvote this if you would like to see bulk delete operations: https://github.com/appwrite/appwrite/issues/3520
Okay @joeyouss
I'll check that out I appreciate you dearly
Recommended threads
- Trying to Figure out how to delete a use...
If i have a button in an app that allows a user to delete their account, can I not just call a function from my swift app to Appwrite to have the account delete...
- Expected a value of type 'bool', but got...
I am trying to get current User, but get this error message when I do. I get back user prefs, but error comes from trying account.get() So I am getting User. I ...
- Problem accessing api via local host.
I think i set the Endpoint correctly in my config.ts als the cloud.appwrite url but when i try to create a user I get this Error message: Access to XMLHttpReque...