Replacing broken PVC pipe

pvc

I want to remove what is left of the pipe. The pipe just takes liquid from the heater to the sewer. Part of the pipe is screwed into the heater, as you can see.
I broke this pipe in a bad spot. How can I remove what is left of the pipe?

Best Answer

Extractor tool, like $5 at your local hardware store:

enter image description here