Blue velvet Nudibranch did the trick for me Also upping the flow in the tank, I haven't seen a flatworm since I did both those things in over 4 months.
Be careful with the flatworm X, it works but like was said before if you kill too many flatworms at once you may nuke your tank.
Steve