delete event properly