Reset iTunes Library on Mac: Full Guide
In this article
Resetting your iTunes library on a Mac restores the app to its original state: it clears your library database, playlists, and preferences, and can fix corrupted files, sync issues, or performance problems. This is a complete reset—your music and media files themselves remain on your Mac, but you'll need to re-add them. Before starting, back up your library and make sure you know your Apple ID and password, as you'll need to re-authorize your computer afterward.
What You'll Need
- Your Mac's administrator password (to delete certain system files).
- An external drive or cloud storage for backing up your iTunes library (recommended).
- Your Apple ID and password, if you use iTunes Store purchases or Apple Music.
Step-by-Step
- Quit iTunes completely. Click the iTunes menu at the top-left of your screen and choose Quit iTunes (or press Command+Q). Make sure it's not running in the background—check the Dock for a dot under the iTunes icon.
- Back up your library (optional but recommended). Open Finder, go to your Music folder (usually ~/Music), and copy the entire iTunes folder to an external drive or cloud storage. This preserves your library XML, playlists, and settings in case you want to restore them later.
- Open the Music folder. In Finder, press Shift+Command+H to go to your home folder, then open the Music folder. You'll see an iTunes folder (or Music folder if you're on macOS Catalina or later, but the reset process is the same for iTunes).
- Rename the iTunes folder. Right-click the iTunes folder and choose Rename. Change the name to something like iTunes Backup or iTunes Old. This is safer than deleting it immediately—if anything goes wrong, you can rename it back.
- Delete the iTunes preference file. Open Finder, press Shift+Command+G, and type ~/Library/Preferences. Look for a file named com.apple.iTunes.plist. Drag it to the Trash. This file stores your preferences, such as window size and last opened library.
- Clear the iTunes caches (optional). In the same Preferences folder, you may also see a folder named com.apple.iTunes—delete that too if it exists. This removes cached artwork and temporary files.
- Empty the Trash. Right-click the Trash icon in the Dock and choose Empty Trash. This permanently deletes the preference file and any cached data.
- Restart your Mac. Click the Apple menu and choose Restart. This ensures all iTunes processes are fully closed and the system clears any memory locks.
- Open iTunes again. After restarting, launch iTunes from the Applications folder or Dock. iTunes will create a fresh, empty library automatically. You'll see a welcome screen asking if you want to use this as your iTunes library—click Use Library.
- Re-add your media. Go to File > Add to Library (or File > Add Folder to Library) and select the music, movies, or other media files you had in your old library. They'll appear in your new library. You can also drag and drop files onto the iTunes window.
- Authorize your computer. If you use iTunes Store purchases, go to Account > Authorizations > Authorize This Computer and enter your Apple ID and password.
Common Mistakes
- Deleting the iTunes folder instead of renaming it. If you delete it without a backup, you lose your playlists and ratings permanently. Always rename first.
- Not quitting iTunes before deleting preferences. If iTunes is running, it may rewrite the preference file or lock it, so the reset won't take effect.
- Forgetting to back up before resetting. Even if you plan to re-add files, your playlists and play counts are lost unless you back up the library database.
- Deleting the wrong file. The preference file is com.apple.iTunes.plist—not com.apple.iTunesHelper.plist or any other file. If you're unsure, just rename the iTunes folder first.
Tips
- If you want to keep your playlists and ratings, you can export them before resetting: go to File > Library > Export Playlist, and save each playlist as an XML file. After resetting, you can import them via File > Library > Import Playlist.
- After resetting, consider consolidating your media files: go to File > Library > Organize Library and check “Consolidate files” to copy all media into the iTunes folder. This makes future backups easier.
- If you use Apple Music or iTunes Match, your library will re-sync from the cloud after you sign in, so you may not need to manually re-add everything.
- If you have a large library, re-adding files can take time. Do it in batches to avoid overwhelming the app.
Troubleshooting
If the reset doesn't go as planned, here's what to try in order:
- Check if iTunes created a new library. If iTunes opens with your old library still intact, you may have missed the rename step. Go back and ensure the iTunes folder is renamed, then repeat the process.
- Restore from your backup. If you renamed the folder and something goes wrong, you can restore it by renaming it back to iTunes. Quit iTunes first, then rename.
- Delete the preference file again. Sometimes iTunes recreates the preference file on launch. Quit iTunes, delete the file again, and restart.
- Check for permission issues. If you get errors about not being able to modify the iTunes folder, right-click the folder in Finder, choose Get Info, and ensure your user account has Read & Write permission in the Sharing & Permissions section.
- Run First Aid on your disk. If iTunes crashes repeatedly after reset, open Disk Utility (in Applications/Utilities), select your startup disk, and click First Aid. This repairs disk errors that might affect the library.
- If nothing works, reinstall iTunes. Download the latest version from Apple's website (or the Mac App Store if available for your macOS version). Uninstall iTunes first by dragging it to Trash, then reinstall. Your library files remain untouched.
Frequently Asked Questions
Will resetting my iTunes library delete my music files?
No. The reset only clears the library database (the list of songs and playlists). The actual media files (MP3, M4A, etc.) stay on your Mac in your Music folder or wherever you stored them. You'll need to re-add them to the library.
Do I need to back up my library before resetting?
It's strongly recommended. While the reset itself doesn't delete your media files, it does erase playlists, play counts, ratings, and any custom metadata. A backup lets you restore those if you change your mind.
Can I reset just the playlists without deleting my entire library?
Yes. Instead of a full reset, you can delete individual playlists by right-clicking them and choosing Delete. To clear all playlists at once, select all (Command+A) in the sidebar and press Delete. Your music remains in the library.
How do I find my iTunes library folder on macOS Catalina or later?
On macOS Catalina and later, the iTunes app is replaced by the Music app, but the library folder is still called iTunes inside your Music folder. The reset steps are the same—just use the Music app instead of iTunes.
Will I lose my Apple Music subscription or purchases?
No. Your Apple ID and purchases are tied to your account, not your local library. After resetting, sign in with your Apple ID and your purchases will be available for download again (if you have iCloud Music Library enabled).
Can I reset the library without losing my playlists?
Yes, if you export them first. Use File > Library > Export Playlist for each playlist, then re-import them after resetting. Note that smart playlists won't export as XML—you'll need to recreate them.