Looks like a Dorvilleid polychaete to me. Looks like yours is likely an herbivorous species, judging by its location on the glass. Many of them are predatory, but the only ones that I have actually found in aquaria with any sort of regularity are the herbivorous species. If that is the case, it should be fine to leave it in, since those kinds are harmless.