smart deletion of events