delete unnecessary directory