add rm command, print eventId if exists