There are an estimated 80,000 members of ISIS/ISIL. The core membership in Al Qaeda is much, much smaller.

I won't pretend to know jack about military strategy, but it seems... potentially possible to take them out. Not easy by any means, but possible.