Six lines are reef friendly and will eat smaller bristle worms. They often become aggressive with age and small shy fish can be at risk, so the goby might be pestered.
Bristle worms are not a threat to your system. They are good detrivores and help move the top layer of sand. Leave them be.