Q.how to get rid of ants in an asparagus fern
How do I get rid of thousands of ants in an asparagus fern?
If you haven't read it, this article may help: https://www.gardeningknowhow.com/plant-problems/pests/keeping-ants-of-flowering-vines-vegetables-and-flowers.htm
Also, you may want to check your other plants for pests, such as aphids. They can leave behind a sticky residue, called honeydew, which ants are attracted to. Taking care of the pests responsible will normally take care of the ants. Oftentimes, neem oil will help treat ant pest problems and is perfectly safe for use. Here is more information: https://www.gardeningknowhow.com/problems/pests/neem-oil-uses.htm