Skip to content
Snippets Groups Projects
Commit 71900883 authored by Morris Jobke's avatar Morris Jobke
Browse files

introduce deleteAllUserValues

parent 985b15f7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment