Hi Gareth, In a programmatic way, that's relatively easy. You can use the Configuration Admin Service and call listConfigurations(String filter), with a filter like "(service.factoryPid=YouFactoryPid)". Then you can call delete() on all of the returned Configuration objects. Beware that the ConfigAdmin returns null rather than an empty array in case there is no configuration matching the filter. (See docs [1][2]).
I'm unaware of an easy possibility to do this with a script "from outside", i.e. the console or similar. Regards, Benjamin [1] http://www.osgi.org/javadoc/r4v42/org/osgi/service/cm/ConfigurationAdmin.html#listConfigurations%28java.lang.String%29 [2] http://www.osgi.org/javadoc/r4v42/org/osgi/service/cm/Configuration.html#delete%28%29 -----Original Message----- From: Gareth [mailto:[email protected]] Sent: Dienstag, 27. Mai 2014 23:39 To: [email protected] Subject: Bulk Delete Configurations Hello, Any way to bulk delete configurations? I realize I have created 30000 instances of a factory pid which shouldn't be there. I know I can create a script to delete the pids. Just wondering whether there may be another way. thanks in advance, Gareth -- View this message in context: http://karaf.922171.n3.nabble.com/Bulk-Delete-Configurations-tp4033294.html Sent from the Karaf - User mailing list archive at Nabble.com.
