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

Tags:

Leave a Reply

Your email address will not be published.