1 Cor 5:10.13 "But now I have written unto you not to keep company, if any man that is called a brother be a fornicator, or covetous, or an idolater, or a railer, or a drunkard, or an extortioner; with such an one no not to eat"..."But them that are without God judgeth. Therefore put away from among yourselves that wicked person."
2 Thess 3:14-15 "And if any man obey not our word by this epistle, note that man, and have no company with him, that he may be ashamed. Yet count him not as an enemy, but admonish him as a brother."
We attended a congregation back in the early 90s that had a very strong anti-abuse message. At one time, a particular husband was identified as someone who was beating his wife. The police weren't handling the issue, but that didn't really matter for the congregation.
The attitude of the men of the congregation was, essentially, "No, you can't practice beating your wife and then come among us in our gatherings as if everything was copacetic. We don't want your company until you repent and cease that behavior."