-
We are looking into implementing soft-deletion for accounts, as some users are deleting their accounts but do not realize that this also delete all the related content they have on our website (🤷) and ask us to reinstate it. When a user wants to delete their account, we fill a How would you implement this with I am a bit afraid of needing to patch a lot of things to get it done properly. Is it an easy way I missed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @renchap, Rodauth's |
Beta Was this translation helpful? Give feedback.
Hi @renchap, Rodauth's
close_account
feature has soft-deletion already built in, and it's the default behaviour when the user closes their account (hard-deletion can be enabled by settingdelete_account_on_close?
totrue
). It works by updatingaccount.status
column to "closed", and that's handled by all other authentication features. Closing the account will delete all associatedaccount_*
table data, but other application data would remain intact.