Get Rid of Ants Solution - Mix the 1 cup sugar and 3 tablespoons boric acid well. Add 3 cups warm water slowly, mixing all the while so it won't be too lumpy. Store in a jar until ready to use. When ready to use, put cotton into the top of a jar lid to fill it and then saturate the cotton to the top. This solution will keep for a long while. They will hang over the edge of the lid and drink for a while and then take it back to the nest killing the colony.