My UV sterilizer was built into my cannister filter .. I just turned it on for as long as it took to clear the algae, and then turned it off again. The bulbs have a finite life, and shouldn't really be necessary in a planted tank. But it should help if it's a free floating bacteria/virus/parasite. If it's a parasite attached to the fish, it won't help there.