remove ref directory