I have a directoy in linux that has several hundred thousand files, and is about 100 Gb. I attempted to clear out the directory using 'rm -f *', and got the following error:
>rm -f *
-ksh: rm: /bin/rm: cannot execute [Argument list too long]
I get the same error when I try the find command. I can delete individual files, and groups if I can get a small enough expression, but that could days to clear them all out. Does anyone know any better ways to empty a large directory?