Back

oath not working

  • 0
  • Web
paulos
14 Dec, 2023, 11:25

delete users with sdk

TL;DR
User is experiencing issues with deleting a user account using the web SDK. There is no delete method on the account object. User is looking for a solution to allow users to delete their own account on a button click. User is advised to create a function on the server side to handle user deletion. It is not possible to delete a user from the client SDKs directly.
ideclon
14 Dec, 2023, 11:27

Please use the correct tags on your post

ideclon
14 Dec, 2023, 11:28

Please also explain what you’re trying to achieve, the method you’re using to attempt to achieve it, what you expect that method to do, and what the method is actually doing.

paulos
14 Dec, 2023, 14:23

i am using web sdk i want the user to delete its own account on a button click the users should be able to delete its account completely i tried to use account.delete("id here") but it says there is no delete method on account

ideclon
14 Dec, 2023, 14:24

No, it’s not possible to delete a user from the Client SDKs

paulos
14 Dec, 2023, 14:44

so what is the solution

ideclon
14 Dec, 2023, 14:45

You can create a Function which deletes the user.

ideclon
14 Dec, 2023, 14:46

The reason it has to be done from server side is that there’re almost certainly things you’ll have to clear up after/before 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