Allow multiple objects to be destroyed

Enhance the destroyObject action to take an array
rather than a single path.

Change-Id: Ic1de7274afc253042b590c71ca200618a6ff54d2
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/actions.hpp b/actions.hpp
index 3060145..ea7f247 100644
--- a/actions.hpp
+++ b/actions.hpp
@@ -39,12 +39,12 @@
 namespace actions
 {
 
-/** @brief Destroy an object action.  */
-inline auto destroyObject(const char* path)
+/** @brief Destroy objects action.  */
+inline auto destroyObjects(std::vector<const char*> paths)
 {
-    return [path](auto & m)
+    return [paths = std::move(paths)](auto & m)
     {
-        m.destroyObject(path);
+        m.destroyObjects(paths);
     };
 }