Its how you shoplift cd's. or at least it was back in the day. There is a metal band usually inside the CD or on the back of the CD which has a magnetic metal strip. Running a strong magnet against that strip was how they would disable the anti-theft device. YOU could achieve the same thing using a strong magnet.
This didn't work or tapes or VHS, because a magnet would destroy the content on the tape.