You can demagnetize 304 stainless steel by heating it to a temperature above the Curie point and then cooling it. The Curie point is the temperature at which a material becomes magnetically saturated.