From 379b775a56f681b0cb375dd54018c1dd6e7a62fc Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 16 Oct 2012 22:05:06 +0200 Subject: [PATCH] Delete user files in /data/ after deleting a user --- lib/user.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/user.php b/lib/user.php index e577002650..77bfe0de92 100644 --- a/lib/user.php +++ b/lib/user.php @@ -210,6 +210,10 @@ class OC_User { } // Delete the user's keys in preferences OC_Preferences::deleteUser($uid); + + // Delete user files in /data/ + OC_Helper::rmdirr(OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" ) . '/'.$uid.'/'); + // Emit and exit OC_Hook::emit( "OC_User", "post_deleteUser", array( "uid" => $uid )); return true;