Reputation: 16656
I'm working on a project using Django
. After struggling about how delete user
from my database
, I found this information.
is_active Boolean. Designates whether this user account should be considered active. We recommend that you set this flag to False instead of deleting accounts; that way, if your applications have any foreign keys to users, the foreign keys won’t break.
After reading that, for me, as a developer makes sense, even easier my job. But I was wondering how the user would feel if he/she knows that the data generated by his/hers use wasn't delete in fact, but only, deactivated. So as a developer, can I warn my user that his/her data won't be delete in fact to avoid any kind of law issue ?
Upvotes: 3
Views: 2576
Reputation: 19922
From a programming point of view, there are many options:
The documentation's recommendation is good for specific cases, but you have to decide on your own based on your specific case and requirements.
From a legal point of view, I am no expert but I believe this is a huge matter that is treated differently across countries, but in the end I believe there is an ethical obligation to let your users know at least about what you do with their data.
Upvotes: 4