I thought your plants were in the ground. I've had container plants get infested with ants. That's why I began using plastic window screening cut to fit inside the bottoms of my containers. It allows quick drainage, but keeps critters like ants out.
I convinced the ants that were that were living in the container soil that it would be a really
good idea to move, by placing the garden hose on the top of the soil. I turned it on to a very slow run and left it on all night, and sometimes all the next day. The soil became thoroughly saturated and the ants were rapidly leaving, carrying their babies with them.
Saturating a potted plant that way once, or even occasionally, does no harm, as long as you know you have a quick-draining growing medium. When I was sure all the ants had vamoosed, I let the soil drain for a few days. Then I gently removed the plant from the container, inserted a piece of plastic screening cut to fit the bottom of the pot, then gently replaced the plant. It worked just fine.