added delete functionality for log