← Back to team overview

mahara-contributors team mailing list archive

[Bug 1686193] [NEW] Fully delete user (purge them) from the system

 

Public bug reported:

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.

** Affects: mahara
     Importance: Wishlist
         Status: New

** Changed in: mahara
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1686193

Title:
  Fully delete user (purge them) from the system

Status in Mahara:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1686193/+subscriptions


Follow ups