klaushaidinger.com

Icon

Delete (really) many files in a directory

You may get an error with "rm", if really many files are deleted - like "arguments too long ..". Use this:

find . -maxdepth 1 -name '*.pdf' -delete

Category: Linux

Tagged:

Comments are closed.