Back

Delete an Account

  • 0
  • Auth
  • Web
  • Cloud
polroid
13 Jan, 2025, 19:20

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 πŸ˜…

TL;DR
Developers: To delete an account in a React web app, you can allow users to change their status and then use a cleanup cloud function to delete users marked for deletion. You will need a server-side SDK with the necessary permissions to fully delete a user account. Check out the documentation here: https://appwrite.io/docs/references/cloud/server-nodejs/users#delete. This will guide you on how to implement account deletion in your app.
Kenny
13 Jan, 2025, 19:25
Kenny
13 Jan, 2025, 19:25

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

polroid
13 Jan, 2025, 19:30

On the "web sdk" there isn't an "Users" class to delete users. It's necessary to have a "server sdk" to do?

Kenny
13 Jan, 2025, 19:32

Yes, to fully delete a user you will have to use the server side sdk with an api key that has permissions.

Kenny
13 Jan, 2025, 19:33

You could let the user change their status, and then create a cleanup cloud function that runs periodically deleting any users marked for deletion.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more