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:
0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments