use getHome() to delete users data

This commit is contained in:
Bjoern Schiessle 2013-10-29 18:01:37 +01:00
parent 8ab5da0833
commit db0fa6c529
1 changed files with 3 additions and 3 deletions

View File

@ -195,12 +195,12 @@ class OC_User {
// We have to delete the user from all groups
foreach (OC_Group::getUserGroups($uid) as $i) {
OC_Group::removeFromGroup($uid, $i);
}
}
// Delete the user's keys in preferences
OC_Preferences::deleteUser($uid);
OC_Preferences::deleteUser($uid);
// Delete user files in /data/
OC_Helper::rmdirr(OC_Config::getValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $uid . '/');
OC_Helper::rmdirr(\OC_User::getHome($uid));
// Remove it from the Cache
self::getManager()->delete($uid);