What is the meaning of Demagnetize?

To make something nonmagnetic by removing its magnetic properties.

To erase the contents of a magnetic storage device.

Source: wiktionary.org