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
- Domain Help
My domain estimately.me is verified in Appwrite DNS but SSL certificate keeps failing with: DNS problem: server failure at resolver looking up A for estimately....
- 500Internal Error
, I am reaching out to report a critical issue with my project hosted on Appwrite Cloud (SFO Region). My project has suddenly stopped working, and all API req...
- Showing 1 member with role:developer in ...
For 30days of inactivity, my account got paused; so, I came back and clicked on the restore project button, which shows me I don't have the write access, where ...