code for deleting the corresponding participants if event is deleted