If you read on he says “Put away the evil one from among yourselves.”
He also says their corruption will spread. If they’re not obedient to this teaching I’m not staying.
1 Cor 5:6 Your glorying is not good. Know you not that a little leaven corrupteth the whole lump ? 7 Purge out the old leaven, that you may be a new paste, as you are unleavened. For Christ our pasch is sacrificed. 8 Therefore let us feast, not with the old leaven, nor with the leaven of malice and wickedness; but with the unleavened bread of sincerity and truth.
9 I wrote to you in an epistle, not to keep company with fornicators. 10 I mean not with the fornicators of this world, or with the covetous, or the extortioners, or the servers of idols; otherwise you must needs go out of this world. 11 But now I have written to you, not to keep company, if any man that is named a brother, be a fornicator, or covetous, or a server of idols, or a railer, or a drunkard, or an extortioner: with such a one, not so much as to eat. 12 For what have I to do to judge them that are without ? Do not you judge them that are within ? 13 For them that are without, God will judge. Put away the evil one from among yourselves.
**Paul says this also.
Eph 5:11 Have nothing to do with the fruitless deeds of darkness, but rather expose them.
**