Adds function to delete log entries
Replace call to /bin/rm with library call