remove unnecessary directories