Remove sub-folders without deleting files
60757
Move all files from subdirectories to parent directory
155020
How do I delete a folder but not the contents?
9516
Correct way to delete unnecessary files from /boot directory (Ubuntu)
153635
Please help me delete a file?
122261
Remove subfolders from URL
40571
How to delete all files in a directory except some?
42072
How to delete the contents of a folder?
46279
How to clean up file extensions?
14120
Efficiently delete large directory containing thousands of files
65675
Delete all files except specified files/folders using command line?
44728
How to delete file(s) in secure manner?
103936
Easiest way to extract the contents of many folders at once?
134236
How to remove all files in a directory except hidden ones?
93649
Recursively remove files
5414
How to delete the files in one folder which are more than 60 days old in UNIX?
5017
Recursively delete all files with a given extension
6849
Delete all backups of specific file/folder with tmutil