How can I remove users from my React web app?. There is a section that users have a "Delete account" option, but I don't know what to use to do it 😅
Take a look at this documentation.
https://appwrite.io/docs/references/cloud/client-web/account#updateStatus
If you want to fully delete the account you will have to use a server side sdk with an api key that has permissions to delete accounts.
https://appwrite.io/docs/references/cloud/server-nodejs/users#delete
On the "web sdk" there isn't an "Users" class to delete users. It's necessary to have a "server sdk" to do?
Yes, to fully delete a user you will have to use the server side sdk with an api key that has permissions.
You could let the user change their status, and then create a cleanup cloud function that runs periodically deleting any users marked for deletion.
Recommended threads
- Functions not executing after usage rese...
Hi team, Last month my project hit 100% usage and functions stopped working (expected). Now the new month has started and usage has reset, requests are going ...
- Functions never end and always fail (sta...
Hi ! I'm using Appwrite Cloud Pro and function execution from appwrite website is KO. Deploying starter function template, execution is always Failed and the ...
- My function executions console if overwh...
It seems the requests are getting processed correctly but it is using a older version of the backend. And it seems the cron requests done an hour ago are shown ...