Remove excess directories