Back

I want to delete the user...

  • 0
  • Databases
  • Auth
  • Web
Anas Siddiqui
28 Apr, 2024, 22:30

Actually we are building a chat application using react & Appwrite in the profile section we want to add a button that when the user click on it so it's account get deleted so is there any way to do it using the user id?

TL;DR
To delete a user and their data using the user ID in Appwrite, you need to create a server-side function with Appwrite. Check the method here: <https://appwrite.io/docs/references/cloud/server-nodejs/users#delete>. This function will handle the deletion when the user clicks a button in the profile section.
Steven
28 Apr, 2024, 22:42

You must do this server side with something like an Appwrite function that will also delete all their data.

Steven
28 Apr, 2024, 22:43
Anas Siddiqui
28 Apr, 2024, 22:55

for example using postman if we have the user id and we want to perform the delete req so can we do something like this?

Correct me if i am doing something wrong

Steven
28 Apr, 2024, 22:56

If you need help seeing the http request, update the docs drop-down to show REST

Anas Siddiqui
28 Apr, 2024, 22:58

i didn't understand

Steven
28 Apr, 2024, 23:00

Go to the top of the page... There's a drop down for the language

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