You have made the right choice
Heating a piece of magnetized iron or steel strongly in a flame will demagnetize it.