X-ray's can cause demagnetization?

I found this my mistake, it's amazing how for a very short period of time, Xray(and other lasers) can demagnetize a ferromagnets. This is still under research, but how can this be? Can anyone share what they know about this?
Do you all think this is an effective method?
Could it be more efficient than all the others?

A magnetic dipole in an uneven magnetic field experiences a torque - so it's orientation can change.
This is one way you make ferromagnets. Do you know how things become magnetized to start with?

Thus the incoming light, if energetic enough, can knock a magnetic dipole moment into a new orientation.
If the new orientation is random, then a previously magnetized material will lose it's magnetization.

Thus the incoming light, if energetic enough, can knock a magnetic dipole moment into a new orientation.
If the new orientation is random, then a previously magnetized material will lose it's magnetization.

I see the connection here, a photon would excite the dipole moment, since it was previously aligned it has a low energy state.

I'm sorry but your giving me puzzles here and I have no idea what you mean...

Not everything made out of, say, iron, is a magnet.
But it may become magnetized.
Being magnetized is a stable state of the material.
Being non-magnetized is another stable state.
There are many combinations of magnetic moments that could lead to either state.
The details depend on the material.