When a definition is deleted, delete the content too.
Not deleting the content would leave blobs of data that is not
connected to any metadata in the mongo database.
Issue-ID: MULTICLOUD-393
Change-Id: Ifae55bab0affc22b06b1069a27cd90af6f7d5d98
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
                return pkgerrors.Wrap(err, "Delete Resource Bundle Definition")
        }
 
+       //Delete the content when the delete operation happens
+       err = db.DBconn.Delete(v.storeName, id, v.tagContent)
+       if err != nil {
+               return pkgerrors.Wrap(err, "Delete Resource Bundle Definition Content")
+       }
+
        return nil
 }