Time for another post that has nothing to do with development…
If you own a Windows Phone, you have probably seen duplicate songs or albums in your music library. This can be a very frustrating bug to deal with and it is difficult to fix. It would be nice if you could simple select a track or album and delete it right from your phone. Unfortunately, Microsoft does not allow us to do that. It would even be great if connecting the phone to your computer and deleting it files in the file browser or via the Windows Phone app would take care of it for you. Well… no. That doesn’t always work. After struggling with this for a little while, I found a solution that worked for me. Hopefully it works for you too if you are in the same boat. Here is what I did to remove the duplicate songs.
-Connect the phone to your computer with the usb cable and open it up in Windows Explorer.
-Locate the Music folder.
-Select View > Show Hidden Files (from the toolbar or ribbon control depending on what os you are running)
-Once you are seeing the hidden files, you should see an Artists folder that contains a file for each artist in your collection. Find the artist that has the duplicate files and erase that file.
-Navigate to that artist’s corresponding music files directory on your phone and delete those files.
-Copy the music files from your music library on your pc back onto your phone. This should re-generate that file you previously deleted under the hidden Artists directory. This is the file that tells your phone what files to display.
That should do it. You can now disconnect your phone and see no more duplicate files (or at least that worked for me).