Erythromycin is a prescription antibiotic. It will kill off the beneficial bacteria too.
I have to disagree. First of all, needing a prescription (which you don't for EM, it is sold at any fish store) does not automatically mean that it will kill off beneficial bacteria. Second of all, I have used it on almost every one of my systems at one time or another and have never, ever, had even the slightest impact to the nitrifying bacteria. Not all bacteria species are affected by all antibiotics. EM is mainly effective against gram positive bacteria and only a few gram negative types. Nitrosomonas are gram negative and are not among those affected by EM. Since the presence of Cyanobacteria is a symptom of excessive waste build up in the tank, ammonia spikes may occur if a large amount is killed off at once and is left to decay in the tank.