delete unnecessary directories