
Cutting a bar magnet in half won't get rid of its poles. It'll just produce two magnets, each with a north pole that will be attracted to the other magnet's south pole, and vice versa.
It's this fundamental property of attraction that makes magnets useful for so many purposes, from holding a party invitation to a refrigerator to performing medical imaging.