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.

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

Mar 28, 2014 1:24 PM in response to mooney8

mooney8 wrote:


Has there been any fix for the Object T error. I am getting it too and tried the test scripted. It is erroring at line 350 now.


Thanks for the help.


Sorry not to have got back sooner on this one. The script works for me in various test scenarios. I'm can't look into it right now but I will try over the weekend. Give me a nudge if you haven't heard back from me by Monday...


tt2

May 2, 2014 11:25 AM in response to markhinkc

markhinkc wrote:


I'm getting same error.

Windows 7

Itunes 11.1.5.5


I think the line is:

If Tracks(J).PlayedDate>Tracks(I).PlayedDate Then Tracks(I).PlayedDate=Tracks(J).PlayedDate


I'm no coder, but Itunes 11 calls that field "Last Played" and not PlayedDate if that is significant.


PlayedDate is the internal label for the property in the COM interface. The label in the iTunes interface will depend on regional settings.


tt2

May 2, 2014 11:33 AM in response to protect02476

protect02476 wrote:


Sorry for being a noob and if this has already beenm answered, but how do I prevent Windows 8 from asking me to confirm each deletion. My libray points to a mapped drive letter on a NAS, if this should mean anything to you.


Thanks in advance.


You may need to lower the UAC setting, or it could possibly be a feature of your AV. I've had the script working on Windows 8 but I can't recall taking any special measures to make that aspect of it work...


tt2

May 2, 2014 3:00 PM in response to protect02476

Can you confirm which build of Windows you are running, and is there any chance of a screenshot of the confirmation prompt? What happens if you delete a file from the NAS using Windows Explorer? Do you get the same prompt?


I've been meaning to write an option to move the unwanted files to a new subfolder rather than deleting them directly not least because on a NAS there is no active recycle bin to recover from if there is a problem.


tt2

May 2, 2014 6:03 PM in response to protect02476

protect02476 wrote:


Hi tt2,


Also, the progress bar you speak of never appeared with UAC disabled.


Turns out Windows 8 has complicated the picture. Disabling UAC under Windows 8 leaves another setting, called LUA, enabled. This is what prevents the progress bar from operating. Disabling LUA breaks Metro Apps so it may not be desirable, but I've added EnableLUA to the scripts collection which displays the current setting and optionally changes it if wanted.


tt2

May 4, 2014 3:51 AM in response to turingtest2

Hi tt2,


Using Windows 8.1 Pro


The same delete confirmation appears when deleting files on the NAS via Windows Explorer.


Here are the two DeDuper screens - not the screenshots I was hoping for:


First: I select "Yes"


---------------------------
DeDuper
---------------------------
Scan selected tracks/current playlist for duplicates and optionally

remove them.


Plays & skips will be merged, most recent played/skipped dates will be

used, and the track that is preserved will be added to any playlists

that the removed tracks were in.


It should help to reduce the overall execution time if you use the

iTunes feature to ''Show Exact Duplicates'' and select the displayed

tracks before running the script.


WARNING!

Are you sure you want to process 67706 tracks?


Yes : Process tracks automatically

No : Preview & confirm each action

Cancel : Abort script


NB: Disable User Access Control to allow progress bar to operate

or change the declaration ''Prog=True'' to ''Prog=False'' to hide this message.
---------------------------
Yes No Cancel
---------------------------


Second: I have selected both "Yes" & "No"


---------------------------
DeDuper
---------------------------
There were 44741 duplicates found from 67706 items:


43941 physical (multiple copies of file with identical properties & size)

800 alternate (multiple formats/bitrates with identical properties)

leaving

22965 original (unique files after deduping)


Would you like to delete the duplicates?


Yes : Delete all duplicate tracks automatically

No : Delete all but alternate dupes (safer)

Cancel : Abort script
---------------------------
Yes No Cancel
---------------------------


I receive now other notifications.


Thanks, p

May 4, 2014 5:09 AM in response to protect02476

The same delete confirmation appears when deleting files on the NAS via Windows Explorer.


This is the key... You need to change whichever option in Windows Explorer is resposible for generating this confirmation. Try this:


http://www.howtogeek.com/howto/windows-vista/disable-delete-confirmation-dialog- in-windows-vista/


Alternatively I'll work on that "move rather than delete" option...


tt2

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.