Keyword to delete error log entry

Added new keyword to delete a given error log entry.

Resolves openbmc/openbmc-test-automation#501

Change-Id: If44459b5d7773e1014c590c3321cd8c81198e0e8
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 989d61b..1e9a50f 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -889,3 +889,16 @@
     Execute Command On BMC
     ...  systemctl restart xyz.openbmc_project.Logging.service
     Sleep  10s  reason=Wait for logging service to restart properly.
+
+###############################################################################
+Delete Error log Entry
+    [Documentation]  Delete error log entry.
+    [Arguments]  ${entry_path}
+
+    # Description of argument(s):
+    # entry_path  Delete an error log entry.
+    #             Ex. /xyz/openbmc_project/logging/entry/1
+
+    ${data}=  Create Dictionary  data=@{EMPTY}
+    ${resp}=  Openbmc Delete Request  ${entry_path}  data=${data}
+    Should Be Equal As Strings  ${resp.status_code}  ${HTTP_OK}