deleting unnecessary directories