Deleting millions of files

From Useful Data
Revision as of 18:46, 15 June 2017 by Simon (talk | contribs) (Recreated page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Deleting millions of files

When you have a file system with 100,000s or more of files, rm will not work. It will eventually come back and say bash: /bin/rm: Argument list too long or some such.

This command will work:

find . -exec rm {} \;