Bear in mind that, without the armature in place, the coil will draw a lot more current than the motor would. Also, if you connect it to 3-phase power, it will have a rotating magnetic field. It might have a tendency to make the tool you're demagnetizing try to spin in your hand. Haven't tried it, though.