Answer (1 of 17): From the directory in question, run: find . -type f -exec rm \{\} \; This will delete anything that is a regular file in the current working directory (.). The rm command is executed for each matched file so the arg list won't be too long. Related, the xargs command can also ...
![How can someone rapidly delete 400,000 files?](https://cdn-ak-scissors.b.st-hatena.com/image/square/1f3dfbed3e9f85a1c9cc16b3c60d917c43852e41/height=288;version=1;width=512/https%3A%2F%2Fqsf.cf2.quoracdn.net%2F-4-images.Illustration_fb_share_default_1280x720.png-26-7b8bc71e8107b6f5.png)