Remove unsued stuff from path