summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/allconfig.php9
-rw-r--r--lib/public/iappconfig.php1
-rw-r--r--lib/public/iconfig.php7
3 files changed, 17 insertions, 0 deletions
diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php
index e06879d4723..71393a0d163 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 da4090d5e69..cbd1a7e0573 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 554fee5b22f..671ae92234b 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