How to Clean and Reinstall iTunes on Windows & macOS
In this article
Yes, you can cleanly remove iTunes and reinstall it by uninstalling the program, deleting leftover files, and then downloading the latest installer from Apple’s website.
What You’ll Need
- Administrator access on the computer
- Stable internet connection for downloading the installer
- External drive or cloud storage if you want to back up your iTunes library
- Apple ID credentials (optional, for signing back into the Store)
Step‑By‑Step
- Back up your iTunes library. Before removing anything, copy the entire
iTunesfolder (usually found inMusic\iTuneson Windows or~/Music/iTuneson macOS) to an external drive or a cloud folder. This preserves your music, playlists, and device backups. - Quit iTunes completely. Ensure the app is not running in the background. On Windows, check the system tray; on macOS, use Command + Q or right‑click the Dock icon and select “Quit”.
- Uninstall iTunes (Windows only).
- Open Control Panel → Programs and Features.
- Find “iTunes” in the list, click it, and choose Uninstall.
- If prompted, also uninstall the related components in this order: Apple Software Update, Apple Mobile Device Support, Bonjour, and Apple Application Support (both 32‑bit and 64‑bit). Removing them prevents orphaned services.
- Delete leftover iTunes files (Windows).
- Open
C:\Program Files\iTunesand delete the folder if it still exists. - Open
C:\Program Files (x86)\iTunes(for 32‑bit installs) and delete it as well. - Navigate to
C:\Users\[YourUser]\AppData\Roaming\Apple Computer\iTunesand delete any remaining files. TheAppDatafolder is hidden by default; enable “Show hidden files” in File Explorer View options.
- Open
- Delete leftover iTunes files (macOS).
- Open Finder, press Shift + Command + G, and go to
~/Music. Drag theiTunesfolder to the Trash if you have already backed it up. - Open
~/Library/Preferencesand delete any files that start withcom.apple.iTunes. - Open
~/Library/Application Supportand delete theiTunesfolder if it exists.
- Open Finder, press Shift + Command + G, and go to
- Restart your computer. A reboot clears any locked files and ensures the system registers that iTunes is gone.
- Download the latest iTunes installer.
- Visit the official Apple iTunes download page (apple.com/itunes).
- Select the version that matches your operating system (Windows 10/11 64‑bit, Windows 7, or macOS).
- Click “Download” and wait for the file to finish.
- Install iTunes.
- On Windows, run the downloaded
.exefile and follow the wizard. Accept the license, choose the default install location, and let the installer add the required Apple components. - On macOS, the download is a
.dmg. Open it, then drag the iTunes icon to the Applications folder. If macOS already includes iTunes (macOS Mojave and earlier), you can replace the existing app by confirming the overwrite.
- On Windows, run the downloaded
- Restore your library. After installation, open iTunes, go to File > Library > Import Playlist (or simply drag the backed‑up
iTunesfolder back into~/Musicon macOS orMusic\iTuneson Windows). iTunes will automatically detect the library file and rebuild the database. - Sign in with your Apple ID. Click the account icon in the upper‑right corner, enter your credentials, and authorize your computer if prompted. This restores access to purchased content and iCloud Music Library.
Common Mistakes
- Skipping the backup step and losing music files. Always copy the
iTunesfolder before deletion. - Uninstalling iTunes but leaving Apple Mobile Device Support installed. This can cause duplicate services and odd error messages when connecting an iPhone.
- Deleting the wrong
AppDatafolder on Windows. The correct path isC:\Users\[YourUser]\AppData\Roaming\Apple Computer\iTunes; deletingLocalinstead may remove unrelated data. - Downloading iTunes from unofficial sites. Only the Apple website provides a clean, signed installer.
- Attempting to reinstall on macOS versions that no longer support iTunes (Catalina and later). Those systems use the Music app; you cannot install iTunes there.
Tips
- Use the built‑in Windows “Reset this PC” feature only as a last resort; it wipes more than iTunes.
- If you have a large library, consider moving the
iTunes Mediafolder to an external drive before reinstalling, then point iTunes to the new location via Preferences > Advanced > iTunes Media folder location. - After reinstall, run a quick “Check for Updates” inside iTunes (Help > Check for Updates) to ensure you have the most recent bug fixes.
- When restoring the library, if iTunes asks to create a new library, choose “Yes” and then drag the old
iTunes Library.itlfile into the window. This forces iTunes to read the original database. - For Windows 11 users, the “Microsoft Store” version of iTunes is also available. The store version updates automatically, but the classic installer offers more control over component selection.
Troubleshooting
If iTunes fails to launch after reinstall, follow these checks in order:
- Restart the computer. A simple reboot clears locked DLLs and pending updates.
- Verify the Apple services are running. Open Task Manager (Windows) or Activity Monitor (macOS) and look for “Apple Mobile Device Service”. If it’s not running, start it from
Services.mscon Windows. - Check for Windows updates. Some iTunes components rely on the latest Windows patches. Install any pending updates and reboot.
- Run the installer as Administrator. Right‑click the iTunes installer and choose “Run as administrator”. This ensures all drivers install correctly.
- Delete the iTunes preferences file. On Windows, remove
C:\Users\[User]\AppData\Roaming\Apple Computer\iTunes\iTunesPrefs.xml. On macOS, delete~/Library/Preferences/com.apple.iTunes.plist. iTunes will recreate a fresh preferences file. - Re‑authorize the computer. Open iTunes, go to Account > Authorizations > Deauthorize This Computer, then immediately re‑authorize using the same Apple ID.
- Check disk space. iTunes needs at least a few hundred megabytes free for temporary files. Clear unnecessary files if the drive is near capacity.
- Look for error codes. If a pop‑up shows an error number, note it and search Apple’s support site for that specific code. Common codes like 0x80070005 indicate permission issues.
- Contact Apple Support. When all else fails, Apple’s official support can walk you through a deeper diagnostics process.
Frequently Asked Questions
Do I lose my purchased songs when I reinstall iTunes?
No. Purchased songs are tied to your Apple ID. After you sign back into iTunes, the Store will re‑authorize those tracks, and they will appear in your library.
Can I install iTunes on macOS Catalina or later?
Apple replaced iTunes with separate apps (Music, Podcasts, TV) beginning with macOS Catalina. The iTunes installer will not run on those versions; you must use the Music app for music management.
Why does iTunes keep reinstalling the same Apple Mobile Device Support component?
This component is required for iPhone and iPad communication. If it is missing or corrupted, the iTunes installer will automatically reinstall it. Ensure it remains after the install.
Is it safe to delete the iTunes Library.itl file?
Yes, deleting the .itl file forces iTunes to rebuild the library database from the XML file and media folder. Your music files remain untouched.
My iPhone no longer syncs after reinstalling iTunes. What should I do?
First, make sure the Apple Mobile Device Service is running. Then, try a different USB cable or port, and finally, re‑authorize the computer in iTunes under Account > Authorizations.
Do I need to reinstall iTunes if I just want to fix a corrupted library?
Often you can repair a corrupted library by deleting the .itl file and letting iTunes rebuild it. Reinstalling is only necessary when the program itself is malfunctioning.