Related by blood or not toxic is toxic and needs to be removed.
What's the reason that makes you think that way about family?
I have two friends, they are not related by blood but they are toxic to my peace.
If your friends are toxic and you haven't had any success in changing their behavior for the better, then it would be best for you to remove them from your social circle. Being with people who are toxic can negatively affect your mental health and also strain your relationships with other people. It's good to not give up on friends but if they still are toxic after you've raised your concerns with them, then the best thing to do is to stop being involved with them.
That's far too many relationships for me to lose. I never do give up on people.
It's better to have no relationships than bad relationships.