If you are no longer friends with someone in real life, it is generally appropriate to unfriend them on social media as well. There are exceptions to this rule, such as if you are in a professional field where it would be beneficial to keep a wide network of connections, but in general, if you are not friends with someone anymore, it is best to unfriend them.