[Django]-Deactivate user access or delete it?

4👍

From a programming point of view, there are many options:

  • You can change all vital details such as email, names etc to anything different (again this depends though on related data, eg if they are family pictures, this won’t do any good).
  • You can have something like ‘anonymous’ account or ‘deleted user’ and hunt down to change all relationships’ ids to that account (again there are issues to be worried depending on the specific data).
  • You can eventually indeed delete the user as soon as again you look into all your relationships and decide what to do with them if a user gets deleted.

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.

👤Wtower

Leave a comment