Fully delete user (purge them) from the system

Bug #1686193 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Triaged
Wishlist
Unassigned

Bug Description

Currently when we call 'delete_user()' we delete most of the user's data but we leave some bits behind, like forum posts and obfuscate the user's email address in the usr table.

But it would also be useful to add a 'purge' option to delete_user() function so that we could delete all info about a user so it was like they never existed, including all files in the dataroot etc

So in lib/user.php the function delete_user($userid) would become function delete_user($userid, $purge = false)

And we'd add just before the db_commit() an if($purge) { } section to deal with full cleanup.

Robert Lyon (robertl-9)
Changed in mahara:
importance: Undecided → Wishlist
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

We'll need to be a bit careful about forum posts though I think. In contrast to a person's portfolio and files contained within it, forum posts are often part of a conversation and deleting them could destroy the conversation. I wonder, if that may need to be an option when the user is deleted. If forum posts are to be deleted, then there should be a placeholder post saying that the post was deleted rather than making it vanish altogether (like we already do when an admin deletes a post that is not the last in a conversation).

Changed in mahara:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.