deleting excess directories