You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

📰 Newsroom Update

Billie Eilish is Apple Music’s Artist of the Year for 2024. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how to delete duplicated songs all at one time?

I would like to get help deleting duplicated songs, I do not know how they got their in the first place.

Windows 7

Posted on Aug 28, 2011 10:29 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 6, 2017 10:14 PM

Some how I got duplicates of my library on iTunes and to get rid of all the new duplicates I went to the library I looked for the date the new duplicate songs were added to the library then I went to columns and where you see Artist, song,

bit rate, time, etc and added 'date added' once that's done click on the box enclosing 'date added' and you will see all songs added by date. Proceed to the last one of the songs with that date press command to highlight it then scroll all the way to the first song and press 'shift' to highlight all of the songs added on that date then simply press delete.

you will be asked if you want to delete these songs...That's it.

483 replies

Aug 21, 2012 6:39 PM in response to turingtest2

Hi turingtest2,


I just read this entire thread and am amazed with your dedication to helping strangers fix this problem. Sincere thanks!


Now I apologize if this is a stupid question, or if it has already been answered, but how exactly do you run the DeDuper script? I downloaded it and tried to open it with iTunes (already having switched to displaying exact duplicates and highlighting all the songs) but I didn't see anything happen. In another post you mentioned that a progress bar may show up, though I didn't get one.


Am I attempting to run the script properly? The method I used felt a bit too simple. While I never got an "iTunes can't open this file" type message, I also haven't seen anything happening.


Thanks so much!

Aug 22, 2012 9:11 PM in response to turingtest2

I have Windows 7 and it seems like it is installed by default. I had to do a bit of digging on how to enable it, as intially the scripting host didn't have the enable option. This Yahoo Answer post explained how to create it. Unfortunately, iTunes was saved as the default program to open the file. I tried to open the program with regedit (C/Windows/regedit) but it would not open. The error message said "The specified program is not a registry script. You can only import binary registry files from within the registry editor."

Sep 5, 2012 12:58 PM in response to turingtest2

turingtest2 wrote:


... This leads me to two ideas that I've been mulling over but I should really find the time to complete. First a script to eliminate repeat entries in a playlist for the same object. Second a reworking of my scripts so that the first job they to is make their own internal deduped list of objects which they then work with to prevent this kind of problem...


tt2


I haven't got around to rewriting all of my existing scripts but I've updated DeDuper so it can cope if running on the contents of a regular playlist that includes the same track entry more than once. The script will now clean this fourth type of duplicate from a regular playlist (a playlist duplicate) instead of generating errors.


I'll probably get around to writing a dedicated playlist cleaner that can tidy all playlists in the library, but DeDuper can do that task one playlist at a time. I also now have a system for making sure other scripts won't behave unexpectedly when working with playlists that contain repeated items.


tt2

Nov 3, 2012 4:52 PM in response to joaokessler

Hi, what language is Windows using? I'm not quite sure why the error occurs on that particular line but the ones just preceding it are designed to send duplicate files to the recycle bin. This can't be done directly so involves invoking the Windows Explorer right-click menu. The script is looking for Delete in the list of commands so my guess is things go wrong if that command isn't there.


tt2

Nov 4, 2012 8:22 AM in response to joaokessler

joaokessler wrote:


Thanks for replying. The Delete option is on the right click menu yes. Do you think it could have anything related to being windows instead of mac?


No, my scripts are exclusivley for Windows rather than Mac so that shouldn't be an issue.


As to the other error two possibilies come to mind, either the file is locked in some way that prevents the script from removing it, or it gets deleted but in a background process allowing a small window in which it stll appears to exist. Do you get a lot of the errors, or just a few? Have you checked to see if the named files still exist?


tt2

Nov 7, 2012 3:01 AM in response to joaokessler

Hi, I've uploaded a minor update which might prevent this error. It is a little tricky to pinpoint since it isn't going wrong for me. Windows always reports folders as being Read-Only even just after you're cleared the Read-Only flag so that won't be relevant. Generally your own account (or everyone) and system need full access to all the files in the iTunes & iTunes Media folders. Offhand I don't actually know which account VBScript uses for file system & shell operations, but I would assume it is the active user.


tt2

Nov 22, 2012 11:29 AM in response to musicman0260

Hi, that sounds like the file might not have download properly. I've inspected the version that was there and can't see or reproduce the error. Either way I've uploaded a slightly updated build which is working fine at my end. Still trying to find time to complete a major upgrade that will detect files on alternate paths to the same folder.


tt2

Dec 1, 2012 10:58 AM in response to turingtest2

iTunes 11 has removed the Show Duplicates/Exact Duplicates functions so I've added two new scripts to make playlists of Duplicates and Exact Duplicates to my scripts collection.


If deduping by hand use shift-delete to remove selected tracks from the library as well as the playlist.


The Exact Duplicates script makes a good starting point from which to run my DeDuper script if you don't want to do it by hand. Please take note of the warning to backup your library before deduping.


tt2

Dec 4, 2012 5:29 AM in response to turingtest2

While 'Verwijderen' is indeed the correct word, the hotkey is none of the letters in it.
http://windows.microsoft.com/nl-BE/windows7/Keyboard-shortcuts states that the hotkey is either the Delete button or Ctrl+D. What should I put in the script?
Thanks by the way.


Edit: it appears i was wrong and it should be 'Ver&wijderen'. The script deleted 108 tracks.

While now i won't get a error message, the script doesn't recognise many of the dupes. Your other script 'Duplicates' and the feature of Itunes (I have yet to download the latest version) do recognise that there are dupes.

(http://i.imgur.com/GF1sv.pnghttp://i.imgur.com/lbnNI.png)

how to delete duplicated songs all at one time?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.