The main function of protonephridia is
Protonephridia or flame cells are the excretory structures in Platyhelminthes (Flatworms, e.g., Planaria), rotifers, some annelids and the cephalochordate – Amphioxus. Protonephridia are primarily concerned with ionic and fluid volume regulation - osmoregulation.