The necessary way of defeating them is destroying their credibility in and outside the Caliphate. But it's a good start if they lose territory (i.e., funding power).