How to Delete Large Amount of Files in Directory


So you have clearly got a very large amount of files!

If you issue the conventional rm -rf * within the directory, you will get an error -bash: /bin/rm: Argument list too long.

You can still easily remove these files, just make sure to use the find command instead!

Solution:

find . -type f -delete