An iTunes “deleted files clean up” typically refers to removing “dead tracks”—songs or media links left in your iTunes library database after the underlying files have been deleted from your hard drive. When you try to play these tracks, iTunes displays a frustrating exclamation mark (!) because it cannot find the file.
You can completely purge these broken links and clean up your database safely using two different step-by-step methods. Method 1: The Playlist Subtraction Trick (Safest)
This native method forces iTunes to separate working files from broken links using built-in playlist logic. It keeps your play counts, ratings, and date-added information completely intact. Create the master list Go to File > New > Smart Playlist.
Set the rule to: Artist is not xxx_nonexistent_string_xxx (or any random text that does not exist in your library).
Name this playlist All Database Entries. This list automatically pulls in every entry, working or broken. Create the working list Go to File > New > Playlist (a standard static playlist). Name this playlist Working Entries. Separate the working files Open your All Database Entries playlist.
Select everything by pressing Ctrl + A (Windows) or Cmd + A (Mac).
Drag and drop all selected songs into the Working Entries playlist.
Note: iTunes will only successfully copy tracks it can physically locate on your hard drive, leaving the “dead” links behind. Isolate and delete the broken links Go to File > New > Smart Playlist again. Set the rules to: Playlist is All Database Entries Playlist is not Working Entries
Make sure it is set to match all rules. Name this playlist Broken Links.
Open the Broken Links playlist, press Ctrl + A (Windows) or Cmd + A (Mac) to highlight them all.
Press Shift + Delete (Windows) or Option + Delete (Mac). Confirm the prompt to permanently remove them from your iTunes library.
Method 2: The Database Rebuild (Fastest for Large Libraries)
If you have thousands of broken links, the playlist method can be tedious. Rebuilding forces iTunes to look at your physical media folder and only catalog what actually exists.
Warning: This will clear your custom playlists and “date added” attributes, though metadata like track names, artists, and album art embedded in the files will remain safe. Export your library structure
Open iTunes and go to File > Library > Export Library. Save this .xml file to your desktop as a temporary backup. Close iTunes completely. Clear the corrupted database files
Navigate to your main iTunes folder on your computer (usually located in C:\Users\Username\Music\iTunes on Windows or User/Music/iTunes on older macOS versions).
Move the following files out of that folder and onto your desktop or into the Trash/Recycle Bin: iTunes Library.itl iTunes Music Library.xml Re-import the living files
Open iTunes. Your library will look completely empty, which is normal. Go to File > Add Folder to Library. Select your iTunes Media (or iTunes Music) folder.
iTunes will scan the folder and populate your screen only with the media files that physically exist on your hard drive. The dead files are officially gone. Alternative: Freeing Up Drive Space (Deleting Old Backups)
If you are cleaning up iTunes to save hard drive space rather than fixing broken music links, your best target is old iOS device backups, which easily hog tens of gigabytes.
Open iTunes and navigate to Edit > Preferences (Windows) or iTunes > Preferences (Mac). Click on the Devices tab.
You will see a list of device backups. Select the old backups you no longer need and click Delete Backup. YouTube·nhorliemac
Leave a Reply