How to cut off toxic friend?

I have this buddy I’ve been friends with for about 2 years or so but in the past year he has started to be extremely toxic and manipulative. For example he will get angry when I don’t want to hangout, he has threatened me with violence multiple times, he will get angry about every little thing possible, he has turned extremely racist and homophobic(for example he will yell the N word in public extremely loud and yell at Indian people calling them names and slurs) and he is also extremely controlling he seems to be attached to my other friend(who has also been friends with him for the same amount of time) almost like a crazy girlfriend. And that’s just a very small list of the things he does. I have taken multiple breaks and told him how I feel and given him the chance to change but he won’t. Any advice on how to cut him off?