remove ref file