deleting events when they have been handled.