Activation: Delete version interface after activation

When activation is finished, the version interface and the related
images created by phosphor-version-software-manager shall be deleted.

This is done by invoking the Delete method of the related service, so we
need to get all the services from the object, and get the correct
service to invoke the Delete method.

Tested: Verify the Version interface created by
        xyz.openbmc_project.Software.Version service, and the related
        files in /tmp/image/<versionId> are removed after activation is
        completed.

Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: Icb14731bbea35175c2519bd40b9f88a0b54a034a
diff --git a/src/activation.hpp b/src/activation.hpp
index cde55c5..6d5de67 100644
--- a/src/activation.hpp
+++ b/src/activation.hpp
@@ -99,6 +99,12 @@
      */
     void unitStateChange(sdbusplus::message::message& msg);
 
+    /**
+     * @brief Delete the version from Image Manager and the
+     *        untar image from image upload dir.
+     */
+    void deleteImageManagerObject();
+
     /** @brief Start PSU update */
     void startActivation();