Are you welding? I think you can demagnetize the pipe with a commercial product (degausser) or by heating it to its Curie temperature. The latter will be impossible to do without a furnace. I remember doing a science experiment as a kid where we used a hammer to demagnetize a steel pipe, but I don't remember the steps.