Getting rid of ants

They might, but they might trap bees too. I like ant moats - mine are a simple home-made design. I have slightly improved the concept, but this is the basic idea: