I haven’t tried this but my sister swears by it. Mix baking soda and powdered suger in equal proportions, then add a small amount of water to form a paste. Place in a jar lid on the ant colony. They will take it into the colony and all who eat it will explode. You will find dead ants all around the lid.
The surest way to rid your home of ants quickly and safely is to mix equal parts sugar, flour and borax, put it in a bottle cap and set that in an area where you've seen ants. Some people add a few drops water to make a liquid or paste.
The ants carry the borax back to the nest, and the borax erodes the waxy coating that protects them. A few capfuls will take out an entire nest, inside or outm in a matter of days.