I would like to delete all files that are less than a specific size in a directory. Does anyone know if there is a Windows command that will do this? something like de
de
BTW: Using PowerShell (on Windows 10) was the easier way for me:
I only did this on the directory where I wish to delete files smaller than 20MB:
ls | where {$_.Length -lt 20mb} | Remove-Item