Poll of the Day > Is there a way to mass delete all files in a folder below a size?

Topic List
Page List: 1
argonautweakend
02/04/21 1:08:50 AM
#1:


Like, I have a music folder. I want to try to delete all of those .txt files and playlist files and cues because I dont need them.

I have subfolders by band and then by album. can I just somehow click on the main folder, and specify to delete all files below, say, 10kb?
... Copied to Clipboard!
Adam_Savage
02/04/21 1:10:44 AM
#2:


sort by file extension, highlight all the txt files, delete.
---
definitely not helly
... Copied to Clipboard!
Adam_Savage
02/04/21 1:11:14 AM
#3:


sub folders

so do a basic search in the root folder for .txt, then delete everything that appears
---
definitely not helly
... Copied to Clipboard!
argonautweakend
02/04/21 1:12:34 AM
#4:


Adam_Savage posted...
sub folders

so do a basic search in the root folder for .txt, then delete everything that appears

yoooooo
... Copied to Clipboard!
EclairReturns
02/04/21 1:28:48 AM
#5:


You can do it quickly in Windows cmd:

Change directory to given path
cd [copy-paste full directory path here]


For deleting files below 10 kb in given directory
forfiles /s /c "cmd /c if @fsize leq 10kb del @file"


For deleting text files within given directory
forfiles /s /m *.txt /c "cmd /c del @file"


Of course, the method heliy suggested is much less complicated and basically makes the command prompt irrelevant, if it was not already, in the case that your OS did not happen to be of Windows.
---
Number XII: Larxene.
The Organization's Savage Nymph.
... Copied to Clipboard!
SKARDAVNELNATE
02/04/21 2:07:01 AM
#6:


In Windows
Detail view
Sort by size / type
Click the first one
Shift-Click the last one
Delete

---
No locked doors, no windows barred. No more things to make my brain seem SKARD.
Look at Mr. Technical over here >.> -BTB
... Copied to Clipboard!
Topic List
Page List: 1