If you need to shorten the toilet flange, one option is to use a PVC pipe cable saw to cut off the top of the flange.
Another option is to flatten the pieces by cutting off a few segments with a mini hacksaw. Then you can remove the flange rings.
Finally, cut the pipe until it is flush with the floor.