delete find all (.DS_Store) files that they remain alone in a folder

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
hassaniq
Posts: 2
Joined: Thu Aug 29, 2024 7:38 am

delete find all (.DS_Store) files that they remain alone in a folder

Post by hassaniq »

hi

I deleted a bunch of files in Windows - but thousands of .DS_Store files remain in empty folders
I have a program to delete empty folder and your program also has this capability
But how can I find and delete folders that only contain .DS_Store?
That is, folders with only .DS_Store inside them and no other files

how can i find all (.DS_Store) files that they remain alone in a folder in my hard drive?
therube
Posts: 5056
Joined: Thu Sep 03, 2009 6:48 pm

Re: delete find all (.DS_Store) files that they remain alone in a folder

Post by therube »

In Everything 1.5 Alpha:

child-file-count:1 child-folder-count:0

will find directories (I think it is) with no subdirectories & with only 1 file within.

Though with that, any "name" search that you might use (like, .DS_Store) is relegated to directory names only, not file names.
But maybe (probably) there is some other set of Search Functions to get what you're after?



Try,
wfn:child:.DS_Store sibling-folder-count:0
. [Nope, that's not it either.]


This might have it,
wfn:child:.DS_Store descendant-count:1
.


(Note that "changes" are not seen, you'll have to, View | Refresh, to see changes.)
hassaniq
Posts: 2
Joined: Thu Aug 29, 2024 7:38 am

Re: delete find all (.DS_Store) files that they remain alone in a folder

Post by hassaniq »

as i cheack in a small HDD , the last one work perfect

Code: Select all

wfn:child:.DS_Store descendant-count:1
thank youuuuuu . :D
Post Reply