I want a shell scripts to delete ALL files in a dir, BUT NOT dir
42908
How to remove all the files in a directory?
155590
find -delete does not delete non-empty directories
56422
How to delete file in folder except name files in list.txt?
134236
How to remove all files in a directory except hidden ones?
59723
How do I remove all sub-directories from within a directory?
63771
bash script to remove directories based on modified file date
97363
How do I delete all but 10 newest files in Linux?
3380
How do I remove/delete a folder that is not empty?
88837
Exclude folder using `find` command
6849
Delete all backups of specific file/folder with tmutil
18309
Delete all files in directories except those whose path are listed in a file
153244
Delete all files to which no corresponding file with another extension exists
146191
How to delete all files in a current directory starting with a dot?
29053
Delete all but the most recent X files in bash
155020
How do I delete a folder but not the contents?
151463
MS-DOS command to delete all files except one
5414
How to delete the files in one folder which are more than 60 days old in UNIX?