Generally speaking with ants I use bait products.
Here's one you can get from Amazon, for example:
TERRO 2600 FBA 2 lb. Perimeter Ant Bait Plus
Kills ants (except fire ants), cockroaches, crickets, earwigs, silverfish, slugs and snails
Not harmful to beneficial insects (ladybugs and butterflies)
Convenient, easy-to-use 2lb. shaker canister
Long-lasting, weather-resistant granules
Slow kill gives worker ants time to transport bait to the colony