You can use find /path/to/your/folder/ -delete to delete everything in this folder.
While the rm wildcard will work with too many files ("The argument list is too long"), this works regardless of the number of files.
You can also delete only files, but save any subdirectories:
find /path/to/your/folder/ -type f -delete
You can also specify any other find support criteria to limit "results".
Thiefmaster
source share