How to mass delete duplicate image files with ( )

coroloro

Distinguished
Mar 5, 2005
44
1
18,545
I have a directory full of duplicate image files. It is pretty simple, all the duplicate files have the file name plus a (1) or (2) or (3)... and there are a LOT of them. Is there an easy way for me to delete all of the duplicates without having to use some fancy image finding software? I just need to delete any that have [strike]the parens[/strike] a bracketed number added, ie: [strike]"cutephoto"[/strike] "cutephoto (1)" "cutephoto (2)".... I just want all the extra crud GONE.
 
Solution

Very true. You could run a one liner through Powershell which would delete only duplicates, but I thought that was a bit beyond the scope here and potentially more dangerous to somebody who sounds inexperienced.

// find and delete duplicate files with just Powershell
Open a command prompt.

Navigate to the directory containing the duplicated files.

Use the following command. It will delete anything with "(" in the firs part of the filename.

del *(*.*

If anything in that directory is of great importance to you, I would consider backing it up before you run a command like this, in the event that it deletes more than you intended.
 

Very true. You could run a one liner through Powershell which would delete only duplicates, but I thought that was a bit beyond the scope here and potentially more dangerous to somebody who sounds inexperienced.

// find and delete duplicate files with just Powershell
 
Solution