mmc: reset: Delete all BMC error logs

During a bios factory reset, the partition where hostboot stores their
error logs is cleared. Need to clear the BMC error logs too to avoid
discrepancies.

Tested: Verified the /var/lib/phosphor-logging/extensions/pels/logs/
directory was cleared after a bios factory reset except for the
'archive' subdirectory.

Change-Id: I273d7953fda053823cea93dc57b751de74ddef43
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/mmc/item_updater_mmc.cpp b/mmc/item_updater_mmc.cpp
index 1a5b142..9541b08 100644
--- a/mmc/item_updater_mmc.cpp
+++ b/mmc/item_updater_mmc.cpp
@@ -70,6 +70,9 @@
         }
     }
 
+    // Delete all BMC error logs to avoid discrepancies with the host error logs
+    utils::deleteAllErrorLogs(bus);
+
     // Remove files related to the Hardware Management Console / BMC web app
 
     utils::clearHMCManaged(bus);