Delete duplicate files - Pl. Help!

Status
Not open for further replies.

singenaadam

Innovator
I had merged two folders. Now there are ~60,000 files spread across the ~50 sub-folders.

The duplicates have (2) appended by SynToy (it freaks out once in a while).

Is there a way to delete them using some app. using wildcard - something that would mean in normal English:
"delete all files in all sub-folders with filename ending in (2)"

Pl. help!
 
Thanks @ayanavish , (I tried the stuff, apparently Duplicate File Cleaner is better of the lot) - but my problem is that the duplicates have the "(2)" appended. So they do not show up in the searches of the typical apps.
 
Try this powershell command
Code:
Get-ChildItem -Path C:\Test -Recurse -force | Where-Object { -not ($_.psiscontainer) } | Remove-Item -include *+"(2).txt" -Force

Sigh! doesn't work. Deletes all files. Need some more tweaking.
 
Last edited:
  • Like
Reactions: singenaadam
+1 for antitwin. use the 'compare by content' option which will find all the dupes, then you can move it to separate folder to confirm & delete
 
  • Like
Reactions: singenaadam
Try this method:
Type (2) in search box in the root of that folder containing the files. Should give you the files. Select them and delete.
 
  • Like
Reactions: singenaadam
@Jambumali
I have been using a program named "DoubleKiller" very old and small in size (800kb).
It have options to search files based on same name, checksum, dates, size. It also take additional parameters along with wild card characters.
 
You could've selected all the duplicate files in one go if the extensions were same. Now search for individual file types at the folder level and delete them.

search strings; use with quotes:

"* (2).txt"
"* (2).lit"
"* (2).pdf"
"* (2).doc"
"* (2).mobi"
 
  • Like
Reactions: singenaadam
Nice and easy
del /s "*(2)*"

del-Delete
/s -Globald search
*(2)* -The string (2) might be at any arbitrary position in the filename e.g. Office(2).pdf,Office(2).xlsx
 
  • Like
Reactions: singenaadam
^^ that will delete all the files containing string "(2)", regardless of its location in the filename. :p
OP needs to delete files having "(2)" at the end of its name.
 
  • Like
Reactions: singenaadam
Status
Not open for further replies.