Back

Delete all data Related to a user

  • 0
  • Accounts
rohan
30 Dec, 2023, 15:55

Hi, Is there any function to delete all user data?

TL;DR
Title: Deleting All User Data in Appwrite Developers inquired about the possibility of deleting all user data in their projects using Appwrite. They expressed annoyance but still found the platform usable, despite the lack of this feature. It was clarified that Appwrite currently does not have a built-in function for deleting all user data. The developers suggested implementing cascading on-delete behavior, but it was explained that Appwrite cannot automatically determine what constitutes user data. Therefore, developers need to manually implement the deletion of data related to the user by considering all tables with foreign key references to the user table. No specific solution was provided in the thread.
Drake
30 Dec, 2023, 18:22

No, you need to implement that because you know what all the user data is

dieternuckelt
2 Jan, 2024, 00:20

Wouldn't this be way easier with a cascading on-delete behaviour?

Drake
2 Jan, 2024, 00:30

Relationships do have on-delete options. The problem is Appwrite doesn't know what's user data that needs to be deleted

dieternuckelt
2 Jan, 2024, 11:14

Everything that has a foreign key reference to the user table, no?

ideclon
2 Jan, 2024, 13:04

There is currently no such thing in Appwrite.

dieternuckelt
2 Jan, 2024, 13:13

OK, thanks, but doesn't the lack of such a fundamental feature make this service completely unusable?

ideclon
2 Jan, 2024, 13:15

I’ve used Appwrite in many projects (including ones where users have some kind of Relationship with each other). I’ve found this slightly annoying, but certainly not “unusable”

dieternuckelt
2 Jan, 2024, 13:21

Hm, right, but I think we will stick to writing backends ourselves then. Thanks for the help!

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