I just finished treating my bichirs for some kind of external flukes, I used parasite clear, it killed everything that crawls in the tank, literally every planaria made a mad dash up the walls of the aquarium but only made it 6-8 inches up before they all became extinct.
Now, I wasn't trying to get rid of the planaria it was only a bonus, I don't think it would be recommended to medicate your tank and stress your fish to remove something that doesn't harm them. But if you want planaria gone, parasite clear will do it.
ALSO i used under half of what the recommended dose was for a tank my size.