Home > Linux, SysAdmin, Website > *nix – deleting all files in a folder (0000′s)

*nix – deleting all files in a folder (0000′s)

When ‘rm’ says ‘too many arguments’, use the following to erase all the files in a folder:

find . -type f -print | xargs -n 20 rm
Categories: Linux, SysAdmin, Website Tags:
  1. No comments yet.
  1. No trackbacks yet.