There are a few ways to remove sludge from PVC pipe. One method is to pour boiling water down the pipe, then use a plunger to suction onto the sludge and pull it out. Another method is to use a plunger with a bit of soap added to it to break up the sludge.