What is the command to remove all files but not directories?
93547
How to exclude/delete files only?
40084
Remove empty directory trees (removing as many directories as possible but no files)
155020
How do I delete a folder but not the contents?
30346
Recursively delete empty directories in Windows
24111
How do I delete a directory with read-only files in C#?
88837
Exclude folder using `find` command
29053
Delete all but the most recent X files in bash
72522
Delete all files in a folder except the last (most recent) 20
137448
How do I remove all files in a folder except just some specified files?
65864
How to delete files and folders that cannot be deleted?
25394
Delete files and directories by their names. No such file or directory
42908
How to remove all the files in a directory?
129670
How to clean up unnecessary files
11468
How to delete ".."-folder under Windows?
18865
How do I exclude a directory by name using find?
66865
Get all sub directories that only contain files
28655
Completely delete a folder in Windows using command line