As too many sticks often choke a fire and put it out, while making a lot of smoke, so excessive sorrow often makes the soul smoky and dark, and dries the stream of tears.
Without sorrows there is no salvation. On the other hand, the Kingdom of God awaits those who have patiently endured. And all the glory of the world is nothing in comparison.
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.
Most people desire and seek after prosperity in this life, and they strive to avoid sorrows. While that seems very good and pleasant, constant prosperity and good fortune do a person harm. He falls into a variety of passions and sins, and angers the Lord, while those who live a life of sorrow come closer to the Lord and more readily attain unto salvation, for the Lord called the life of happiness the broad path. The wide gates and the broad way lead to destruction, and many there be who take that way (Matthew 7:13). It is the narrow way and the strait gate which lead to life eternal, and few there be who find it (Matthew 7:14). Thus, according to His love for us, seeing the possible benefit [of sorrows] to those who are worthy, the Lord moves many off the broad road and puts them on the narrow, sorrowful path, so that in [their] patient endurance of sickness and sorrow, He might effect their salvation and grant them life eternal.
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.