Re-creating the iTunes Library file

1. Quit iTunes.

2. Locate your iTunes folder.
Operating System Default location of iTunes Folder
Microsoft Windows 7 \Users\[your username]\My Music\

3. Open your iTunes folder.

4. Drag the iTunes Music Library.xml to the Desktop

5. Drag the following file from your iTunes folder to the Trash:
Mac OS X "iTunes Library" (in versions of iTunes prior to 4.9 this was called "iTunes 4 Music Library")
Microsoft Windows "iTunes Library.itl" (in versions of iTunes prior to 4.9 this was called "iTunes 4 Music Library.itl")

6. Open iTunes.

Important: Do not add any content into iTunes at this point.

7. Choose File > Library > Import Playlist.

8. Navigate to the iTunes Music Library.xml file on the Desktop.

* Windows users: Click Open.

After re-creating your library, any devices that you sync with iTunes (Apple TV, iPod, iPhone) will see your iTunes library as a new library and will completely resync.

If your Podcasts list in iTunes is empty after following these steps, learn how to add them back into iTunes.

If the iTunes Music Library.xml file is not available, learn how to add files back to the Library (because the iTunes Music Library.xml file is not available, playlists and other information will not be available).