WMP: How to Erase, Reset, and Correct Your Windows Media Library

Your media library in Microsoft Media Player giving you fits? Just blast it and start over. This is a easy way to get WMP to reindex your music files.

If you move a ton of music around like I do, your media library through Microsoft Media Player gets jacked up. To fix it, the easiest thing to do is just to erase your old library files… and have WMP find your new files.

This will not erase your music files.

How to Get WMP to re-index your music:

    1. Close Microsoft Media Player for at least 30 seconds
    2. Click Start and then Run
    3. Type the following into the textbox:
    [list]%userprofile%\Local Settings\Application Data\Microsoft\Media Player

4. Click OK and a folder showing you your library files will appear
5. Erase all the files that end with .wmdb
6. Open Microsoft Media Player
7. Push F3
8. Select the locations for your music files
9. WMP will reindex your music

The Conversation

Follow the reactions below and share your own thoughts.

60 Responses to “WMP: How to Erase, Reset, and Correct Your Windows Media Library”

  1. November 01, 2008 at 6:11 pm, Anonymous said:

    Excellent Advice! Worked perfectly!


  2. November 15, 2008 at 6:33 am, Richard said:

    Excellent if windows media player is using 100% CPU and freezing or stuttering


  3. November 25, 2008 at 10:18 am, Anonymous said:

    didn’t work for me. In the Add to Library dialog folders didn’t show and when I manually added the folders and clicked ‘OK’ nothing happened.

    What else should I do?


  4. February 05, 2009 at 12:10 am, Brandon said:

    This is why media player is crap. Wake up microsoft , the fact that people have to do this should be a great clue to what to do with your player in the future. How hard is it to fix it, really? Apple seems to be able to do this. Do the people at micorsoft that work on this just sit around and do nothing all day???


    • February 13, 2011 at 3:10 am, superdave said:

      i would like to point out that i havethe same issues but much worse with itunes and haven’t found any solutionyet


    • January 05, 2013 at 2:44 pm, southron_98 said:

      I am not a computer person but I do a lot of correspondence and due to a speech impediment cannot spell worth a darn. I’ll set in WORD trying to spell a word and never get close but jump over to GOGGLE and using the same letters it correctly selects the correct word. Tell it to Microsoft they don’t care.


  5. February 05, 2009 at 12:27 pm, Tony said:

    This is really useful if your XBox refuses to update the videos in its media library and nothing you do seems to work.


  6. February 23, 2009 at 11:37 pm, sd said:



    • April 23, 2009 at 8:32 am, James C said:

      If WMP is still not adding files, it might be because they’re marked as “Hidden” on the filing system. Files copied from out from an iPod, for instance, are hidden by default.

      Right click on the top of your music folder and untick the “Hidden” box, then make sure you select the option to apply to all files and subfolders when asked.


  7. May 10, 2009 at 9:06 pm, Daniel said:

    Excellant, thank you!


  8. August 16, 2009 at 7:23 pm, Phil said:

    Great, thanks. Works fine with Media Player 12 on Vista too.


    • August 26, 2009 at 2:34 am, Anonymous said:

      Gotta a PS3. It detects the Media Player Sharing device (my PC), but when navigating thru folders on PS3, it says no titles. This started to happen after I renamed a folder on my PC.

      Any ideas as how to reset Devices list on the sharing list in Media Player in Vista…???


  9. November 01, 2009 at 9:04 pm, Anonymous said:



  10. June 20, 2010 at 3:39 pm, levidos said:

    Thanks :D


  11. July 04, 2010 at 12:48 pm, Selcukseber said:

    thank you solved the problems


  12. August 19, 2010 at 3:25 am, Synchronizprayer said:

    Tried everything else first.. This works, thank you!


  13. September 24, 2010 at 5:40 am, Sam said:

    Thanks heaps! This solves one of those irritations I’ve had with WM player


  14. October 05, 2010 at 2:30 pm, Sultan Orange Blue said:

    thank you this is help me :)


  15. October 11, 2010 at 5:16 pm, Wb640 said:

    Did not solve my problem yet, of WMC not showing my movies anymore. Also, the *.WMDB files were locked, had to issue before deleting first these:
    taskkill /F /IM ehshell.exe
    taskkill /F /IM ehtray.exe
    net stop /y WMPNetworkSvc


  16. October 15, 2010 at 7:50 pm, Tazz3L said:

    Thank you! This worked for me with the added step of having to go into safe mode to delete the last of the library files. The WMP re-indexed everything, including my play lists!
    (I had to use safe mode for the last library file because XP kept saying the file was in use and it could not delete it.)


  17. October 20, 2010 at 11:52 pm, Laurelwreath Hope said:

    I have Win 7 and Media player 12. The only change was I drop the [list] in the command line deleted the files and opened the Media player and volia everything was working great. Thanks so much for this it really helped!


  18. October 25, 2010 at 10:08 am, Logan Young said:

    Very simple, but were it not for this guide, I wouldn’t have found it. Thanks a lot.

    @Brandon: The necessity for this has nothing to do with Microsoft. The need to do this comes out of how we maintain our file systems. Things get moved, removed, replaced, copied, overwritten, etc. You can’t expect WMP to know where you’re moving your music to all the time…
    It’s simple housekeeping. Every few months, clear out your library as per above, reset your library folders and import your music again. Now I know about this guide, I’ll be adding this on my bi-yearly maintenance along with defragging my drive.


  19. January 11, 2011 at 2:38 am, Aloush37 said:

    will doing this delete any playlists?


  20. August 03, 2011 at 9:05 pm, Banhmi_keppate said:

    tks bro i worked perfect


  21. October 23, 2011 at 11:13 am, Sai Das said:

    Searching on Step #3 produces nothing in W&U 64bit WMP12

    Now what?


  22. January 20, 2012 at 10:31 am, Lucas said:

    Thanks. I was doing it a far more tedious way before. I should have thought of the .wmdb thing. :)


  23. February 01, 2012 at 12:37 am, Joe said:

    If I wanted to completely backup my music directory, including the windows media library, would it work if I manually copied my music directory (with all the files) and then copied these very same .wmdb files to the same directory on the backup PC??


  24. March 11, 2012 at 10:52 am, Libby said:

    Thank you so much! I was about ready to bash the computer with a baseball bat because I was having so many problems with my library on media player. Fortunately I found this, and in no time flat, my library was the way I wanted it! I can finally listen to my music again! Thank you, thank you, thank you!!!!


  25. April 21, 2012 at 12:44 pm, Saeed Aquib Ahmed said:

    thank you vry vry vry vry vry much….


  26. May 27, 2012 at 7:29 pm, A'. said:

    Worked like MAGIC! Thank youuuuuuu. [:


  27. June 07, 2012 at 1:40 pm, wayne lee said:

    top man thank you!


  28. July 29, 2012 at 3:44 am, sam said:



  29. August 05, 2012 at 2:36 am, 6SpeedRon said:

    Great advice. Thanks.


  30. August 23, 2012 at 3:28 am, WakenBaken said:

    Eh, thought I’d try this to reset my library, but no dice, there’s is however 1 .wmdb file that can’t seem to be deleted


  31. August 28, 2012 at 1:08 pm, ravi said:

    awesome tip..
    thanks bro…


  32. October 03, 2012 at 6:46 pm, jonie148 said:

    Thank You so much, saved me a lot of stress after i mucked my library up. windows 7 users (and probably windows 8) should note (as stated above by tazz3l) that you need to go into safe mode first to get rid of 1 of the files.


  33. October 07, 2012 at 2:02 pm, hadi said:

    exellent , good job.


  34. October 25, 2012 at 11:36 pm, Brooke said:

    My files weren’t deleting, and this was the ONLY thing that worked!


  35. December 06, 2012 at 4:09 pm, princesaam said:

    OK guys, i got this one problem, when i add all my music to the windows media player, some off them appear and some doesn’t, and how ever i do this, it will still appear as a “ghost”, but if i go straight to the file and play the music, the music is gonna play but still not gonna be automatically added itself….?? help guys


  36. January 27, 2013 at 1:36 am, Nikhil said:

    Very Good Work…Helped me alot…! Thanks..


  37. January 28, 2013 at 4:42 am, Lachlan Coe said:

    Thank you!!!. WMP is crap bt i cant have iTunes as it freezes on my computer :( But this has made WMP work again, mine was littered with corrupt songs aout 300 of them and about 600 duplicates, but now i’ve only got the music that’s on my hard drive :) not what WMP THINKS is on my HDD.


  38. January 28, 2013 at 3:12 pm, michael o'sullivan said:

    Thanks very much, this worked but almost straightaway all the songs that were not displaying on wmp originally went away again. Any ideas what I can try to stop this?


  39. January 31, 2013 at 6:11 am, Zoso said:

    Thank you so much for posting this! Out of all the problems I’ve had with my computer, this one really set me off the most and I really thought the worst! Glad it’s starting to fix itself as I’m typing this! However it came at a price… all my additional info from the 2 custom lists which I stored my release dates, and most of the labels and play counts are all gone. But at least I got it to work without having to upgrade to a version I really don’t want. THX again!


  40. February 07, 2013 at 3:10 am, CindyH said:

    I was able to delete all the .wmdb files EXCEPT the CurrentDatabase_360.wmdb. I receive an error that says: Cannot delete CurrentDatabase_360: It is being used by another person or program. Close any programs that might be using the file and try again.

    When I open WMP…all my songs are still there…



    • February 18, 2013 at 2:30 pm, Odeon said:

      Previous commenters said they needed to boot into Safe Mode to delete one of the .wmdb files but they didn’t mention which one. You might try rebooting your computer regularly and trying to delete the file again. If that doesn’t work try Safe Mode by pressing F8 just after your computer’s HP/Dell/Asus/whatever logo disappears, then pick Safe Mode (don’t bother with Safe Mode with Networking or other Safe Mode options). You may need to press F8 several times to see the Safe Mode option.


  41. February 18, 2013 at 2:39 pm, Odeon said:

    This didn’t work for me. In my case any time I tried to “Manage Music library” no window would open up. The same would happen for “Manage Pictures library” and “Manage Videos library.” I found out that this was happening because I moved my multimedia files from a smaller drive to a larger one that was connected via USB (in a drive dock) and I changed my Windows Library locations to the new drive before disconnecting it. I was replacing the drive with the larger one in the dock so when I removed the small one and installed the bigger one internally the drive letter of the bigger drive took the letter of the old drive and WMP was pointing to a disconnected drive.

    I found a Microsoft Community thread where a non-Microsoft person has the Most Helpful reply (the third post on the page): http://answers.microsoft.com/en-us/windows/forum/windows_7-pictures/wmp12-does-not-allow-me-to-manage-my-music-library/0cd1c322-5e6c-43c2-9e16-81dd5e94a1a8?tm=1361216210630. I had to make a change to the Windows Registry so that My Music, My Videos, and My Pictures pointed to the E: drive instead of the H: drive.


  42. April 07, 2013 at 7:29 am, Erin said:

    Hi. I’m a little slow at this but when you say “click Start then click Run”, what is Run exactly? Do you mean hit Enter? Or type in Run and hit Enter?
    I tried just pasting in “[list]%userprofile%\Local Settings\Application Data\Microsoft\Media Player” under “Search programs and files” on the Start menu, but my computer only recognizes it when I remove the “[list]” part (without quote symbols, of course).
    I have Windows 7 on a laptop, no Smart touch stuff.
    Thank you in advance.


    • May 07, 2013 at 1:56 pm, John said:

      > T Have the same experience as Erin. I “click Start but there is no Run”. I enter Run and hit Enter. I too paste in “[list]%userprofile%\Local Settings\Application Data\Microsoft\Media Player” under “Search programs and files” on the Start menu, but my computer only recognizes it when I remove the “[list]” part (without quote symbols, of course). I then get a list but there are no .wmbd files.


  43. May 07, 2013 at 1:46 pm, John said:

    Dead end from the start. What version of Windows are you talking about? I have Windows 7. I click start but there is no “run”. I can enter run and get a search box but this string finds nothing. I can not even locate the directories you are talking about.


  44. May 12, 2013 at 5:15 pm, HBee said:

    Absolutely helpful! Cheers


  45. May 14, 2013 at 6:07 am, Andy Page said:

    In case anyone else finds this article and is using Vista like I am (yes, still!) The path to the files is:

    C:\Users\USERNAME\AppData\Local\Microsoft\Media Player

    Vista also displays the files as ‘Windows Media Library’ files but they are still ‘WMDB’ files.

    Thanks for the article, even if I am about a million years late in finding it!


  46. May 22, 2013 at 3:57 am, MHMD said:

    thanx alot


  47. May 26, 2013 at 10:17 am, Raphael Torres said:

    I found an easy way to reset WMP 12.
    1. Open WMP
    2. If you don’t see the menu bar [File, View, Play, Tools, Help] click on Organize>Layout>Show Menu Bar
    3. In the Menu bar click Tools>Avdanced>Restore Media Library.
    4. Pop up will say “Continuing will empty your media library and close the WMP. Do you wish to continue?
    5. Click Yes and your done!


  48. July 12, 2013 at 2:30 pm, Gilbert Collins said:

    This did totally nothing. Just can’t get rid of the library EVEN THOUGH I did delete those files


  49. July 29, 2013 at 8:06 am, Erik said:

    Worked beautifully! Thanks for the help! I’m fed up of having to work around Windows OS stupid bugs.

    By the way, if anybody is having problems deleting the *.wmdb files, because it gives you an error saying that Windows Media Player is currently using one of the *.wmdb files, you should check this webpage out:


    Works fine!


  50. January 12, 2014 at 7:48 pm, Tracy said:

    Been looking for awhile now, and this is the only thing that worked!!!!


  51. March 03, 2014 at 4:33 pm, eye said:

    thankyou for this help


  52. March 05, 2014 at 4:48 am, dzontra volta said:

    Thank you for your help. I couldn’t erase nonexisting playlist from library.


  53. April 02, 2014 at 9:31 am, Marie said:

    i doens’t work


  54. April 11, 2014 at 10:57 am, Doris said:

    This won’t work on my machine, what version of Windows is it for?


Leave a Reply