demagnetization
If you stroke an iron nail with a bar magnet, the nail will become a permanent or at least long-lasting magnet. Its magnetic domains will remain aligned even after you remove it from the magnetic field of the bar magnet. Permanent magnets can be demagnetized, however, if they are dropped or heated to high temperatures. These actions move the magnetic domains out of alignment.