Delete large amount of spam

Gunnar Wrobel wrobel at pardus.de
Thu Aug 16 06:09:07 CEST 2007


Thomas Spuhler <thomas at btspuhler.com> writes:

> Is there an easy way to delete a very large amount of spam 
> in /var/spool/amavis/
> Rm doesn't work, message is too many arguments.

If "rm" complains about about the number of arguments on the command
line, you can list all the files using "ls" and pipe them into "xargs
rm" that will run the "rm" command on smaller chunks:

ls * | xargs rm

I don't know if simply deleting files in the amavis spool is a good
idea though. 

> I started to delete them in as large chunks as possible, but gave up after 
> about 6 hours.
> Konqueror isn't able to display all files
>
> -- 
> Thomas
> _______________________________________________
> Kolab-users mailing list
> Kolab-users at kolab.org
> https://kolab.org/mailman/listinfo/kolab-users

-- 
______ http://kdab.com _______________ http://kolab-konsortium.com _

p at rdus Kolab work is funded in part by KDAB and the Kolab Konsortium

____ http://www.pardus.de _________________ http://gunnarwrobel.de _
E-mail : p at rdus.de                                 Dr. Gunnar Wrobel
Tel.   : +49 40 432 72335                           Bundesstrasse 29
Fax    : +49 40 432 70855                            D-20146 Hamburg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   >> Mail at ease - Rent a kolab groupware server at p at rdus <<                 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the users mailing list