I had a good fight with flatworms before. I am new here but I have always tried the most natural ways possible before anything else extreme.
Severely reduce the amount of food you are putting into your tank. Spot feed everything including your fish if you can.
Water changes and removing bad...