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.
A wise elder gives the following advice to monks and youth alike: 'Avoid eating foods which are to your liking, but, preferably, eat the simplest foods, and be thankful to God, Who also sends you these.'
The more wood you pile on a fire the more heat you get, and thus it is with God - the more you think on Him the more you are fired with love and fervor towards Him. He who loves the Lord is always mindful of Him, and remembrance of God begets prayer.