New
#1
Deleting empty folders
Following on from this thread ...
Can't find empty folders using Windows Explorer search function
And specifically this post ...
This works as described and lists the empty directories/folders.You can use PowerShell. Assumed you're in the top-level folder you want to search, the command is:
Code:
gci -recurse -Directory | ?{(gci $_.Fullname).count -eq 0}
How can I change that powershell script to then delete those folders ?
Have had little or limited success with explorer not finding empties and "RED" Remove Empty Directories" from jonasjohn.de
And XYplorer free no longer exists or there are 'issues'.
20H2 pro up-to-date on w11 capable laptop.