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;