ejabberd - Comments for "Delete Vhost from Database after Migration" https://www.ejabberd.im/node/3490 en Try ejabberdctl delete_old_users_vhost https://www.ejabberd.im/node/3490#comment-54211 <div class="quote-msg"> <div class="quote-author"><em>basquiat</em> wrote:</div> <p>is there some additional way to really get rid of all traces, users, ACLs etc. pp. of an obsolete virtual host?</p></div> <p>If you use some of the released versions ejabberd 2.0.x, you can install mod_ctlextra which implements a command similar to the one I explain here.</p> <p>As I use ejabberd trunk SVN for development and betatesting, I installed mod_admin_extra in ejabberd trunk SVN. I executed this command that deletes all accounts in a vhost.</p> <pre> $ ejabberdctl delete_old_users_vhost example.org 0 Deleted 1 users: [{"testuser1","example.org"}] </pre><p> Let's review what it does and doesn't.</p> <p>About each account in the vhost, it will delete:<br /> * authentication information (if you use internal auth)<br /> * last activity information<br /> * offline messages<br /> * privacy lists<br /> * private xml data<br /> * roster<br /> * vcard</p> <p>It does not delete:<br /> * roster items of users in other vhosts that have contacts in that vhost<br /> * PubSub nodes<br /> * PubSub subscriptions<br /> * MUC rooms<br /> * MUC affiliations<br /> * MUC nick registration.</p> <p>It does not delete configuration options ACL and Access. You can delete this in ejabberd.cfg and in the database (using Web Admin).</p> Wed, 06 May 2009 19:25:42 +0000 mfoss comment 54211 at https://www.ejabberd.im