Implemented deleteEvent in EventHandler class.