remove unnecessary directory