Back

Trying to Figure out how to delete a user account (iOS/Swift)

  • 0
  • Users
  • Apple
martino
3 Mar, 2024, 18:15

If i have a button in an app that allows a user to delete their account, can I not just call a function from my swift app to Appwrite to have the account deleted? Do I need to setup a server to do that(?)

TL;DR
Developers looking to delete a user account (iOS/Swift) can utilize Cloud Functions and the Users API. It's not recommended to handle account deletion directly in the client-side SDKs. A button in the app can trigger a function call to Appwrite for account deletion. No need to set up a separate server for this task.
martino
3 Mar, 2024, 18:15

(assuming users would only be deleting their own accounts)

darShan
3 Mar, 2024, 18:23

You can use a Cloud Function for that. Afaik, account deletion on client side sdks isn't an intended behaviour.

martino
3 Mar, 2024, 18:23

okay thanks! I'll go and poke around functions for bit haha

darShan
3 Mar, 2024, 18:25

Hint : Functions + Users API. Feel free to ping back if you face any issues.

martino
3 Mar, 2024, 18:25

i really appreciate it - thank you!!

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