summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-05 16:34:54 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-08 22:29:42 +0100
commit719008836d5254c6fa3975c5044d1c6a811bc124 (patch)
tree4ea184cf56e918603a86eaff5c2c07df68dc8dc9 /lib/private
parent985b15f770eae72b53065de72ab081e6f5437499 (diff)
downloadnextcloud-server-719008836d5254c6fa3975c5044d1c6a811bc124.tar.gz
nextcloud-server-719008836d5254c6fa3975c5044d1c6a811bc124.zip
introduce deleteAllUserValues
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/allconfig.php9
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);
+ }
}