[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Delete 4 million files



On Wed Mar 18, 2009 at 16:37:53 +0000, kj wrote:

> Now, I've been running the usual find . -type f -exec rm {} \;

> but this is going at about 700,000 per day.  Would simply doing an rm
> -rf on the Maildir be quicker?  Or is there a better way?

  That executes /bin/rm for each file group.  YOu might find it
 faster if you don't cause find to execute a /bin/rm command at all.

  Instead try:

    find . -type -f -delete

Steve
-- 
Managed Anti-Spam Service
http://mail-scanning.com/


Reply to: