Deleting all files except a specific one?
67233
Remove all files/directories except for one file
6849
Delete all backups of specific file/folder with tmutil
29516
Delete files older than X days +
155020
How do I delete a folder but not the contents?
22305
Deleting external/auxiliary files?
40862
Can I delete files or folders from /private/var/folders/?
12917
How do I delete a file whose name begins with "-" (hyphen a.k.a. dash or minus)?
138476
How to delete files listed in a text file
36257
Is there a way to truly delete all deleted files?
42619
How to delete a specific line in a file?
112704
How to delete JPG files, but only if the matching RAW file exists?
42908
How to remove all the files in a directory?
71291
How can I delete a file named ">"?
97200
What is the command to remove all files but not directories?
36006
remove files when name does NOT contain some words
46279
How to clean up file extensions?
103841
How can I skip the Trash when deleting a file?