The only way to permanently eliminate ants is to store food and water in ant-proof containers. You will always get the odd ant in your home because they will be out looking for a supply of food or water. They will not signal to other ants if they cannot find what they are looking for.