new ent = find_ent_by_class -1 while ent > 0 if valid ent and id = ent owner remove ent ent = find_ent_by_class ent