Delete files if number exceeds 30 in number for different files in same directory
29516
Delete files older than X days +
81764
How can I delete all files from a directory when it reports "Argument list too long"
21398
Excluding certain files and directories when deleting files
139910
How to copy 5 newest files from one directory to another and delete the old copies
101366
Sort files numerically in bash
145838
Looping through all files in a directory
36113
Count total number of files in particular directory with specific extension
39834
Check whether files in a file list exist in a certain directory
97363
How do I delete all but 10 newest files in Linux?
138476
How to delete files listed in a text file
32318
What's the best way to count the number of files in a directory?
34879
How to remove all files and subdirectories in a directory WITHOUT deleting the directory in bash?
64283
Delete all but the most recent n file for each group of files that share the same prefix in a directory
118843
How to delete directories based on `find` output?
14120
Efficiently delete large directory containing thousands of files
93382
Rename files by incrementing a number within the filename
153244
Delete all files to which no corresponding file with another extension exists