You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by Frank1016 July 7, 2023
Hi, because I don't have any clue on how to delete account through EmailAuthController API calls, I tried to delete an account line directly in the database table "serverpod_user_info". However, after doing so, I cannot create another account using the same email address, and the error is about some duplicated ID. Could anyone tell me how to completely delete a registered account through EmailAuthController()?
This method should also delete the user's profile image, and (probably also) any files uploaded by the user. However, first the userId that uploaded a given file needs to be tracked: See #922.
I think there should also be the following functionality:
a "soft-delete" which only disables the user account
a "anonymise-instead-of-delete" (Sometimes we want to (and are allowed to) keep the users data but need to make sure that there is no personal information left - in these cases overwriting the user info but keeping the "row in the database" can be utilised.
a "onDeleteUser" callback where we can register some logic which is triggered by this method. This makes it easier to clean up the database etc.
Activity
lukehutch commentedon Jul 11, 2023
This method should also delete the user's profile image, and (probably also) any files uploaded by the user. However, first the userId that uploaded a given file needs to be tracked: See #922.
dkbast commentedon Apr 10, 2024
I think there should also be the following functionality:
SandPod commentedon Dec 18, 2024
Closing as duplicate of: #791