Wipe iTunes Library and Start Fresh – Complete Guide
In this article
Yes, you can wipe your iTunes library and start over by deleting the library files and resetting the preferences; the app will create a brand‑new, empty library the next time it launches.
What You’ll Need
- A computer running macOS or Windows with iTunes installed
- Administrator access (or the ability to enter an admin password)
- An external drive or another location to back up any music, movies, or podcasts you want to keep
- Patience – the process involves closing iTunes, removing files, and launching the program again
Step‑by‑Step
- Close iTunes completely. On macOS, right‑click the iTunes icon in the Dock and choose Quit. On Windows, click the X in the upper‑right corner or select File > Exit. Make sure the app is not running in the background.
- Locate your iTunes library files. The default locations are:
- macOS:
~/Music/iTunes/ - Windows:
C:\Users\[YourUserName]\Music\iTunes\
iTunes Library.itl,iTunes Library.xml, and a sub‑folder callediTunes Mediathat holds all your actual media files. - macOS:
- Back up anything you want to keep. Copy the entire
iTunesfolder to an external drive, a second internal drive, or a cloud storage service. Verify the copy before proceeding. - Delete the library files. After confirming the backup, delete the following items:
iTunes Library.itl(the core database)iTunes Library.xml(optional, used by some third‑party apps)- The
iTunes Mediafolder if you want to remove all media as well. If you only want to reset the database but keep the files, you can leave the media folder intact.
- Reset iTunes preferences. This step clears any cached settings that might reference the old library.
- macOS: Delete
com.apple.iTunes.plistlocated in~/Library/Preferences/. You may need to show hidden files (press Shift+Command+. in Finder). - Windows: Delete
iTunesPrefs.xmlfound inC:\Users\[YourUserName]\AppData\Roaming\Apple Computer\iTunes\. TheAppDatafolder is hidden by default; enable hidden items in File Explorer.
- macOS: Delete
- Launch iTunes. When you open the app again, it will not find an existing library and will automatically create a fresh, empty library. You will be prompted with a dialog that says “Welcome to iTunes – Create a new library?” Click Yes (or Create).
- Re‑import media you want to keep. In iTunes, choose File > Add to Library… and navigate to the backup location of your
iTunes Mediafolder. Select the entire folder or individual files. iTunes will copy the files into the new library location (by default the sameiTunes Mediafolder). - Re‑establish playlists, smart playlists, and settings. If you saved an XML export of your old library before wiping, you can import it via File > Library > Import Playlist…. Otherwise, recreate playlists manually.
- Verify everything works. Play a few songs, check that podcasts appear, and make sure your iPhone or iPad syncs correctly. If any media is missing, locate the original files and add them again.
Common Mistakes
- Skipping the backup. Deleting the library without a copy means all metadata, ratings, and playlists are lost forever.
- Removing only the .itl file. The XML file and media folder contain useful information; leaving them behind can cause iTunes to try to reference missing data and display errors.
- Deleting the wrong folder. On Windows, the
Musicfolder may also hold other unrelated music collections. Double‑check the path before deleting. - Not clearing preferences. Residual preference files can cause iTunes to think the old library still exists, leading to confusing prompts or crashes.
- Forgetting to quit iTunes before deleting files. If iTunes is still running, the OS may lock the library files, resulting in “file in use” errors.
Tips
- Use a dedicated external drive for backups; this isolates the backup from accidental deletion during the wipe.
- If you have a large collection, consider exporting an XML version of your library first (File > Library > Export Library…). The XML file can be re‑imported later to restore playlists and play counts.
- When re‑adding media, enable the option Copy files to iTunes Media folder when adding (Preferences > Advanced). This keeps all files organized in the standard location.
- After the fresh start, go to Preferences > General and turn off “Show iTunes Store” if you only use local files; this reduces background network activity.
- On macOS Catalina and later, iTunes has been split into separate apps (Music, TV, Podcasts). The steps above apply to the Music app, which uses the same library files.
Troubleshooting
If iTunes does not create a new library or shows an error after you deleted the files, follow these checks in order:
- Restart the computer. A simple reboot clears any lingering file handles.
- Confirm the library files are really gone. Navigate back to the iTunes folder and ensure
iTunes Library.itlandiTunes Library.xmlare not present. - Check for hidden duplicate libraries. On macOS, a file named
iTunes Library.itlmight exist in~/Music/as well as in/Users/Shared/. Delete any stray copies. - Delete the iTunes cache. Remove the folder
iTunes Cachelocated inside the iTunes directory. Corrupt cache can prevent a fresh start. - Run iTunes as administrator. Right‑click the iTunes shortcut and choose Run as administrator. This ensures the app can write a new library file.
- Reinstall iTunes. If the problem persists, uninstall iTunes (Control Panel > Programs > Uninstall on Windows, or drag the app to Trash on macOS) and download the latest version from Apple’s official site. Reinstalling replaces any damaged core components.
- Check disk permissions. On macOS, use Disk Utility > First Aid on your startup disk. On Windows, run
chkdskor right‑click the drive > Properties > Tools > Check.
If none of the above resolves the issue, consider contacting Apple Support with details of the steps you have taken and any error messages displayed.
Frequently Asked Questions
Will wiping the iTunes library delete the actual music files?
If you delete the iTunes Media folder, the audio files are removed. Leaving the folder intact preserves the files while resetting the database only.
Can I keep my iPhone backups after resetting iTunes?
iPhone backups are stored in a separate location (~/Library/Application Support/MobileSync/Backup/ on macOS or C:\Users\[User]\AppData\Roaming\Apple Computer\MobileSync\Backup\ on Windows) and are not affected by deleting the iTunes library.
Do I need to re‑authorize my computer after creating a new library?
Yes. Open iTunes, go to Account > Authorizations > Authorize This Computer… and sign in with your Apple ID. You have up to five authorizations per Apple ID.
What if I want to keep my playlists but not the media files?
Export the playlists as an XML file before wiping (File > Library > Export Library…). After the fresh start, import the XML; iTunes will recreate the playlists without needing the original media files.
Is there a way to automate the wipe on Windows?
Apple does not provide a built‑in reset button. You can create a batch script that deletes the library files, but you must still run it manually and ensure a backup exists.
Will this process affect iTunes Store purchases?
No. Purchased items are tied to your Apple ID and can be re‑downloaded from the Store at any time. Only local copies are removed.