diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php index e06879d472..71393a0d16 100644 --- a/lib/private/allconfig.php +++ b/lib/private/allconfig.php @@ -96,6 +96,15 @@ class AllConfig implements \OCP\IConfig { \OC_Appconfig::deleteKey($appName, $key); } + /** + * Removes all keys in appconfig belonging to the app + * + * @param string $appName the appName the configs are stored under + */ + public function deleteAppValues($appName) { + \OC_Appconfig::deleteApp($appName); + } + /** * Set a user defined value diff --git a/lib/public/iappconfig.php b/lib/public/iappconfig.php index da4090d5e6..cbd1a7e057 100644 --- a/lib/public/iappconfig.php +++ b/lib/public/iappconfig.php @@ -87,6 +87,7 @@ interface IAppConfig { * Remove app from appconfig * @param string $app app * @return bool + * @deprecated use method deleteAppValue of \OCP\IConfig * * Removes all keys in appconfig belonging to the app. */ diff --git a/lib/public/iconfig.php b/lib/public/iconfig.php index 554fee5b22..671ae92234 100644 --- a/lib/public/iconfig.php +++ b/lib/public/iconfig.php @@ -94,6 +94,13 @@ interface IConfig { */ public function deleteAppValue($appName, $key); + /** + * Removes all keys in appconfig belonging to the app + * + * @param string $appName the appName the configs are stored under + */ + public function deleteAppValues($appName); + /** * Set a user defined value