only delete event *after* we have processed the conditionals, else we
might end up checking against garbage