Does HCl kill algae?
Are they metal pipes?  If you want to kill algae as such, flush with a diluted quaternary ammononium disinfectant, let sit a day, then flush everything very well indeed, and again.  If you have rubber or polymer fittings, don't do that, either, for the stuff diffuses in.