I wrote to you in a letter not to associate with sexually immoral people-
References for 1 Corinthians 5:9
by no means referring to this world's immoral people, or to the greedy and swindlers, or to idolaters; otherwise you would have to leave the world.
But now I am writing you not to associate with anyone who bears the name of brother who is sexually immoral or greedy, an idolater or a reviler, a drunkard or a swindler. Do not even eat with such a person.
References for 1 Corinthians 5:11
For what is it to me to judge outsiders? Do you not judge those who are inside?
But God judges outsiders. Put away the evil person from among yourselves.
References for 1 Corinthians 5:13