diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php index 71393a0d16..173aac6ad6 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); + } } diff --git a/lib/public/iconfig.php b/lib/public/iconfig.php index 671ae92234..fe155cc61b 100644 --- a/lib/public/iconfig.php +++ b/lib/public/iconfig.php @@ -141,4 +141,11 @@ interface IConfig { * @param string $key the key under which the value is being stored */ public function deleteUserValue($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); }