Read this passage and open each verse for the full verse feed and commentary tools.
9I wrote to you in my letter to have no company with sexual sinners; 10yet not at all meaning with the sexual sinners of this world, or with the covetous and extortioners, or with idolaters; for then you would have to leave the world. 11But as it is, I wrote to you not to keep company, if any man who is named a brother is a sexual sinner, or covetous, or an idolater, or a slanderer, or a drunkard, or an extortioner. Don`t even eat with such a person. 12For what have I to do with also judging those who are outside? Don`t you judge those who are within? 13But those who are outside, God judges. "Put away the wicked man from among yourselves."
1 Corinthians 5:9-13 (WEB)