You can purchase all manner of ant poisons, dry granular things that the ants will helpfully carry home to feed their queen, killing off the whole nest. I once had a serious infestation in my house spread some of that out, and first observed a lot of dead ants, then they all disappeared. Apparently my local ants chose not to leave their comrades behind.