I don't want to cut off a friend for an ex
What happens if you don't cut the friend out?
My ex will be angry with me.
Dealing with an ex is complicated but you don't have to cut of a friend for them.  You are not together anymore, so you need to make decisions for yourself.
You are right, I will keep my friend by my side.
I think that is the right decision. Your friend will appreciate you putting them over your ex.