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
- Free plan Usage
I using a free plan with one organization. I have three projects but on the free plan I should be able to have 2 projects running But in my case only 1 out of ...
- SPA Not working
So I'm using vite/react, which is spa, and it used to work before, but now whenever I go to any route except the root it shows appwrites 404 page, instead of us...
- Get Started - Web is broken
Trying to complete the get started tasks since the "66%" was finally getting to me, and clicked on "web", was met with: ``` Uncaught TypeError: Cannot read prop...