Thanks for visiting Apple Support Communities.
The information in this article can help with removing duplicate songs from iTunes:
When deduping use Shift > View > Show Exact Duplicate Items as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks. If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin. Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
(If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
Thank you for your DeDuper Script. I have over 30K+ duplicates and your script has helped tremendously. One thing that I have noticed is that the deduper will eliminate dupes of the exact file but I still have multiple copies of the same song in the same folder - see the screen shot below. I am using he latest version of iTunes. I go in to view - hit Shift and show excact duplicates. I then highlight usually 1,000 songs at a time then open the script and it asks me if I want to delete dupes, I click yes and let it go to work. Typically takes 45-50 minutes to dedupe 350 files. Am I missing a step using the deduper?
Thanks again for your script!
The current version of my script only knows about the objects that are registered in iTunes. There are scenarios in which iTunes creates a second copy of each file in the media folder because there is already an existing file with the name it would like to use. In such cases iTunes only lists the one file when there are two in the folder. You can import the media folder, making iTunes aware of every file, then show exact dupes, sort on date added and delete the new additions sending to the bin. Finally turn keep organized off, then back on again to make sure iTunes is using the correct filenames (i.e. without the trailing 1)