1. Heat it above its Curie temperature: Every ferromagnetic material has a specific temperature called the Curie temperature. Above this temperature, the material loses its ferromagnetic properties and becomes paramagnetic. This is because the thermal energy overcomes the magnetic forces aligning the magnetic domains, causing them to become randomly oriented. Cooling the material back down below the Curie temperature will restore its ferromagnetic properties.
2. Demagnetization: This involves subjecting the ferromagnetic material to a magnetic field that is repeatedly reversed and gradually decreased in strength. This process effectively disrupts the alignment of the magnetic domains, causing them to become randomly oriented and eliminating any net magnetic field. This is similar to how a degausser works on magnetic storage media like tapes or hard drives.
Let me know if you'd like more detail on either method!