[ejabberd] mass removal

Badlop badlop at gmail.com
Wed Jul 28 16:07:55 MSD 2010

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"].

(ejabberd at localhost)2> [ejabberd_auth:remove_user(U, "example.org") ||
U <- Users].


More information about the ejabberd mailing list