Houseplants can experience problems with pests such as worms, just like outdoor plants can. Most insects and worms that appear on indoor plants are a result of unsterilised potting soil mixes. These mixes contain worm and insect eggs that hatch once you start watering and caring for the plant. Getting rid of the plant worms requires manual removal and an application of chemical pesticides to eliminate ones remaining in the soil.
Put on gardening gloves and examine the houseplant leaves closely. Pick off as many of the worms as you can see and place them into a garbage bag for disposal. Examine the top of the soil as well, picking up any worms you see crawling there.
Look for any plant leaves that are yellow or brown, pick them off the plant and discard. These leaves are dead or dying and may contain worm eggs that will hatch.
Pour a broad-spectrum plant pesticide into a spray bottle and add the amount of water as instructed on the package directions.
Move the houseplant to an outdoor location to prevent spilling the pesticide on the floor. Spray the stem and all leaves of the plant with the pesticide solution until it drips off.
Open the spray bottle and pour the remainder of the pesticide solution into the soil of the pot until the bottle is empty.