A pair of nephridia is present on each segment of the earthworm, They are similar to flame cells in that they have tubules with cilia and function like a kidney to remove wastes.
The nephridium (plural nephridia) is an invertebrate organ, found in pairs and performing a function similar to the vertebrate kidneys (which originated from the chordate nephridia). Nephridia remove metabolic wastes from an animal's body