Killing off duplicate files

Page may contain affiliate links. Please see terms for details.

swee'pea99

Legendary Member
After reinstalling Win 10 and copying back loads of images, I've discovered that somewhere along the line I've managed to copy a whole load of files into a folder where they already exist, and I presume I failed to click on 'skip' duplicates, so I've ended up with

1595934535019.png


..and the like. Does anyone know of an easy way to get shot of all those (2) files? There's thousands, so I can't face doing them one at a time.

Thanks if you can help.
 

ColinJ

Puzzle game procrastinator!
Use search on the folder, searching for (2). Highlight those and delete them?
 

MontyVeda

a short-tempered ill-controlled small-minded troll
I used a bit of software a few years back called 'double killer' (I think)... it searches for duplicate files (even when the file name has changed) and highlights them all so can delete the duplicates... It saved me quite a few GB of drive space.
 
D

Deleted member 26715

Guest
If you are happy with command lines

Open a command window, change to the relevant folder and del *(2).*

If the above confuses you, I won't explain further as you might end up deleting wanted files. :=)
I would always suggest a ls before a del just to be sure
 
OP
OP
swee'pea99

swee'pea99

Legendary Member
Thanks very much for all suggestions, much appreciated.
Use search on the folder, searching for (2). Highlight those and delete them?
My first thought, but it didn't work. As best I remember it simply ignored the brackets and returned every file including a 2 in its name.
In the folder change view to "details", sort by "date created" (might need to create that column by right clicking in the heading). This should group them all together so you can select the group and delete them as a group
I shall try this.
Another way would be to delete them all and then recopy the images back.
I'd rather avoid this if possible.

I liked the command line idea. But \i rather stubbed my toe on

I would always suggest a ls before a del just to be sure

Eh?

Does CCleaner do this? I've used it before but I didn't know it could do this.

Thanks again. I'll try the non-scary ideas first. :okay:
 

classic33

Leg End Member
Thanks very much for all suggestions, much appreciated.

My first thought, but it didn't work. As best I remember it simply ignored the brackets and returned every file including a 2 in its name.

I shall try this.

I'd rather avoid this if possible.

I liked the command line idea. But \i rather stubbed my toe on



Eh?

Does CCleaner do this? I've used it before but I didn't know it could do this.

Thanks again. I'll try the non-scary ideas first. :okay:
CCCleaner has a duplicate finder. It can be used to search a single file for duplicates. Used it, but I've had to delete the duplicates manually.
 
OP
OP
swee'pea99

swee'pea99

Legendary Member
CCCleaner has a duplicate finder. It can be used to search a single file for duplicates. Used it, but I've had to delete the duplicates manually.
What, one by one? (I'm talking well north of a thousand of these (2) jpgs, - & in some cases (2) & (3)s too)
 

classic33

Leg End Member
What, one by one? (I'm talking well north of a thousand of these (2) jpgs, - & in some cases (2) & (3)s too)
Brings up a list of the duplicates.

List is duplicate file name, followed by each copy of that file found.

Having seen ColinJ's answer, I'd be inclined to go with that option
 
Last edited:
Top Bottom