delete event for edit