Howto delete large amount of files
From How2s
(Redirected from How2 delete large amount of files)
Sometimes, using the terminal, you may run into problems with the
rm *
command as it can only deal with the maximum of 1024 files per request. You will get the error
rm argument too long
The solution is simple: Run a
find
command and pipe the results of it into the
rm
command:
find . -name '*' | xargs rm
good luck!

