Chemical methods. There are various chemical products and sprays you can purchase that are designed to help you get rid of ants. To get rid of ants that are living outside of your home and prevent any more ants from entering into your home, there are strong chemicals you can use. Some options include products such as Terro Outdoor Ant Baits, Amdro Ant Block, or Raid Ant and Roach Spray. If you have ants inside your home, you will want to make sure to choose products and sprays that are approved for indoor use. Some products you can consider trying are Advance Granular Carpenter Ant Bait or Combat Max 27 Ant Killing Gel. There are also sealed ant baits you can lay out that contain a substance that is poisonous for ants. When the ant brings the substance back to their nest, it can eliminate numerous ants.