Re: Delete 4 million files
On Wed, 18 Mar 2009 16:37:53 +0000
kj <koffiejunkielistlurker@koffiejunkie.za.net> wrote:
> Hi guys,
>
> This might seem like a stupid question, but I'm hoping there's a
> better way.
>
> I discovered a Maildir on my server with 4+ million mails in. The
> result of a cronjob that runs every minute - this has been fixed.
>
> 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?
>
> Thanks
>
> --kj
>
Why not # cd $Maildir
then # rm -R *
--
Raquel
http://www.byraquel.com
============================================================
You can only protect your liberties in this world by protecting the
other man's freedom.
--Clarence Darrow
Reply to: