28 Jul 14:07
Re: mass removal
Badlop <badlop <at> gmail.com>
2010-07-28 12:07:55 GMT
2010-07-28 12:07:55 GMT
2010/7/25 Randy Bush <randy <at> psg.com>: > what is the simplest way to remove a whole buch of (bogus) users? The most simple, but inefficient for many unregistrations: ejabberdctl unregister spammer1 example.org ejabberdctl unregister spammer2 example.org If you install mod_admin_extra, the most simple and quite efficient: ejabberdctl delete_old_users_vhost example.org 365 Otherwise, the most efficient: $ ejabberdctl debug (ejabberd <at> localhost)1> Users = ["spammer1", "spammer2"]. ["spammer1","spammer2"] (ejabberd <at> localhost)2> [ejabberd_auth:remove_user(U, "example.org") || U <- Users]. [ok,ok] --- Badlop ProcessOne
RSS Feed