Working principle of demagnetizer:

thermal demagnetizer heats the sample to make the magnetic field disappear. Demagnetization in alternating magnetic field: the remanence of sample disappears in alternating magnetic field.