Implemented delete event functionality