Remove persisted error file upon error deletion

Change-Id: If2418ad9350d7f3bdbfe28a00728f431f08baf9f
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/log_manager.cpp b/log_manager.cpp
index 3f61e91..175a000 100644
--- a/log_manager.cpp
+++ b/log_manager.cpp
@@ -184,8 +184,14 @@
 void Manager::erase(uint32_t entryId)
 {
     auto entry = entries.find(entryId);
+    auto id = entry->second->id();
     if(entries.end() != entry)
     {
+        // Delete the persistent representation of this error.
+        fs::path errorPath(ERRLOG_PERSIST_PATH);
+        errorPath /= std::to_string(id);
+        fs::remove(errorPath);
+
         entries.erase(entry);
     }
 }