Unless curbed by the fear of God that accompanies the practice of the virtues, spiritual knowledge leads to vanity; for it encourages the person puffed up by it to regard as his own what has merely been lent to him, and to use his borrowed intelligence to win praise for himself. But when his practice of the virtues increases concomitantly with his longing for God, and he does not arrogate to himself more spiritual knowledge than is needed for the task in hand, then he is made humble, reduced to himself by principles which are beyond his capacity.
We ought not to grieve or become irritated at anything because, by frequent vexation and irritability, we form the morally and physically very injurious habit of irritability, whilst by bearing opposition with equanimity we form the good and useful habit of enduring everything calmly and patiently.
You ask for some way of completely eradicating irritability. The inclination to irritability is given us to use against sin, and we were never meant to use it against our fellow men. When we do, we act contrary to our true nature.