[ejabberd] Manually modifying multiple rosters

Badlop badlop at gmail.com
Fri Oct 9 04:02:13 MSD 2009

2009/10/8 Ben Beuchler <insyte at gmail.com>:
> I'd like to blow away the rosters for each of
> my users.  Manually clicking "Remove" in the web interface would take
> me all day...
> Are there any clever ways to directly manipulate the rosters?  Even if
> it's the relatively blunt instrument of blowing them all away...

So you want to delete all the content of the 'roster' table in the
internal/default/Mnesia database?
There are several ways.

ejabberd 2.1.0-rc allows this in the WebAdmin:
go to Nodes --> your node -->Database --> in "roster" change to
"Delete content" --> Send

Or using the shell:
$ ejabberdctl debug
(ejabberd at localhost)1> mnesia:clear_table(roster).


More information about the ejabberd mailing list