remove unneded directories