My relationship with one of my best friends is toxic.
How is it toxic?
He is talking about murdering me on online chats.
It can be hard to end a friendship, but if your friendship is toxic then it may be time to get out. Remaining friends with a toxic person is damaging to your life, even if you feel like they have things to offer you. Cut contact with them and you'll start to see your life improve.
You're right. I want to get rid of him.
That's completely understandable if he's talking about hurting you. It can be hard, but stay strong and remember that you are doing it for your own good. If someone wants to hurt you, they don't deserve you.