How do I replace a flange installed with primer?
Depending on where the flange is broken you could look into a .flange repair kit
If that won't do it, I would cut the old flange at the pipe with a mandrel saw from the inside of the 3-4" pipe. Then get a flange with a longer neck that will glue onto the existing pipe. Try to cut the pipe as straight as posible.