Answer:
heat, I think
when quenching knife blades you heat them up until they are no longer magnetic