
delete users with sdk

Please use the correct tags on your post

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.

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

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

so what is the solution

You can create a Function which deletes the user.

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
Recommended threads
- I am trying to run appwrite storage list...
Hello! I am trying to use a command to return all of my files from my bucket. This is the cmd I am currently running: "appwrite storage list-files --bucket-id <...
- nextjs site template gets 500 for /v1/pi...
whats the right way to configure this? do i need to deploy a function? im loosing my hair and i can't get a nextjs site to work. pls help
- WebSocket connection failed - Realtime g...
I am using appwrite cloud + angular (appwrite 21.2.1). On Chrome, when I have a realtime subscribtion and I reload the page or navigate to another page, realtim...
