There is no point in trying to get rid of ants. They are migrators. They rarely make home in your house. During certain times of the year they are the worst, especially the rainy seasons (i.e. spring). They migrate through your house. So you can’t really get rid of them.
Having said that if you do find they’ve made a nest in your house you have to clean it out with vinegar. And if you see an ant trail wash with vinegar the whole trail. Because ants leave an invisible trail that leads other ants. So you’ve got to erase that scent. Vinegar works well. You can also use vaseline to keep them from places you don’t want them to go. They won’t pass vaseline.
And don’t leave crumbs especially sugar anywhere!!! Putting things in airtight containers is the best.