Delete event functionality added.