When God is angry, He has a good and unselfish reason for His anger, and He does what is good and unselfish to make things better.
But a selfish anger reaction or trying to control with anger . . . this kind of anger is not going to cooperate with doing what is good and unselfish, because it's not about caring and sharing.
It can be like if you have nasty gases building up in your gas stove > if they build up, they can blow up. But also you do not want to let that gas out to fill up your kitchen or you and others can be poisoned by it. So, you need to get rid of it, totally, before you do anything else. Doing things and breathing that stuff is not good. We need fresh air while doing freshly nice things.
So you don't need to hold in any anger that is destructive and not readily helping you to do what is good to make things better. Plus, you don't want to be acting in it or letting it out to others. But trust God to remove the toxic waste away from everybody. And then in peace see how you see things and how to do things. This works good, for me > often, my reason for anger is I'm not getting what I want, or I'm expecting more of people than they really are ready to be and do . . . with me, often enough > the anger so often is about me, somehow. So, I need to stop while God clears me, then in peace I usually see how I was being about myself, and I see better how to understand others, and I get a "game plan" about what I'm going to do since ones are not going to be doing certain things with me > if ones don't give me the attention I want, as happens to be my reason for anger, often enough . . . well, Jesus wants me to love all people > there are other people who *I* can give attention to.
Scripture > "swift to hear, slow to speak, slow to wrath; for the wrath of man does not produce the righteousness of God." (in James 1:19-20) So, through this I can see our wrong anger is not energy that we can realistically expect to channel to do what is good. It needs to be confessed, then cleared, then we discover how we can see better, be more patient and caring, and see what God has us doing with caring rather than reacting to not getting what we want. In God's anger, He will make you clear about what He wants that is good,
and He will make you succeed in doing what He expects of you. Succeeding is not bleeding
"'Be angry, and do not sin'": do not let the sun go down on your wrath." (Ephesians 4:26) God's anger brings God and us to do what is good. So . . . if you're getting ready to go to sleep and your anger is still making you mad and sad and bad *against* someone, without bringing you to do what is good > that anger is not to be trusted > it's busted > it needs to just be dumped. You always can forgive > "'And whenever you stand praying, if you have anything against anyone, forgive him, that your Father in heaven may also forgive you your trespasses.'" (Mark 11:25) *When* I fail at this, I confess this and trust You to correct me to do better.
And start fresh in the morning. You should know what people and things come right to mind, in the morning, to start you angry and hurt or whatever. So, don't even let these thoughts and issues etc. start. Notice how they are making sure you don't start with your attention to God; so this is all you need to know