Q.How To Get Rid Of Earthworms In Potted Plants
Have discovered a large ( and I mean a lot!) population of young earthworms in several potted plants, far to many for the pots to sustain. (Must have come in as eggs in bagged potting soil.) Neem oil drench brings them to the surface, where I am picking them off one by one. Is there a way to kill them in the soil, without using a systemic pesticide, as some of the infected plants are edibles. I don’t have access to an outdoor workspace, and don’t want to put them into the ground outside, as they are very damaging to forests. I just want to get rid of them as easily as possible without harming my plants or the environment. I will appreciate any advice!

Certified GKH Gardening Expert
If these are the standard, every day earthworm... There is, absolutely, no reason to get rid of them. Unfortunately, your photos did not come through, so I am unable to confirm whether they are or aren't.
They will not harm your plants, and the benefits of having earthworms in your soil far outweigh any risks to having them.
Here are some articles that will help:
https://www.gardeningknowhow.com/lawn-care/lgen/worm-casting-mounds.htm
https://www.gardeningknowhow.com/composting/vermicomposting/creating-worm-beds-in-gardens.htm
https://www.gardeningknowhow.com/special/children/making-a-worm-house.htm
https://www.gardeningknowhow.com/composting/vermicomposting/worm-castings.htm
https://www.gardeningknowhow.com/composting/vermicomposting/benefits-of-garden-worms.htm