This is an attempt at an answer from the Rambam and does not purport to provide all the Torah views that may exist.
See Maimonides on Life who quotes Rambam's famous middle way from Hilchos Deos Ch 1
Law 3 "The two extremes of each quality are not the proper and worthy
path for one to follow or train himself in. And if a person finds his
nature inclining towards one of them or if he has already accustomed
himself in one of them, he must bring himself back to the good and
Law 4 "The upright path is the middle path of all the qualities known
to man. This is the path which is equally distant from the two
extremes, not being too close to either side. Therefore the Sages
instructed that a person measure (lit., estimate) his character
traits, directing them in the middle path so he will be whole.
The article discusses the concept in depth and explains that:
We must not gauge ourselves based on our surroundings. If we follow
what appears the middle path today, we will lead a mediocre existence
It seems therefore that the Rambam sees middos as not necessarily being all bad (even anger for example) or good but as a continuum in which we must position our behaviour appropriately.
Therefore it seems that he does not seek to uproot and change the source of bad middos.