diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-05 16:34:54 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-08 22:29:42 +0100 |
commit | 719008836d5254c6fa3975c5044d1c6a811bc124 (patch) | |
tree | 4ea184cf56e918603a86eaff5c2c07df68dc8dc9 /lib/private | |
parent | 985b15f770eae72b53065de72ab081e6f5437499 (diff) | |
download | nextcloud-server-719008836d5254c6fa3975c5044d1c6a811bc124.tar.gz nextcloud-server-719008836d5254c6fa3975c5044d1c6a811bc124.zip |
introduce deleteAllUserValues
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/allconfig.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php index 71393a0d163..173aac6ad65 100644 --- a/lib/private/allconfig.php +++ b/lib/private/allconfig.php @@ -152,4 +152,13 @@ class AllConfig implements \OCP\IConfig { public function deleteUserValue($userId, $appName, $key) { \OC_Preferences::deleteKey($userId, $appName, $key); } + + /** + * Delete all user values + * + * @param string $userId the userId of the user that we want to remove all values from + */ + public function deleteAllUserValues($userId) { + \OC_Preferences::deleteUser($userId); + } } |