Something like :
#foreach($userDoc in $xwiki.searchDocuments(", BaseObject as obj where
obj.name=doc.fullName and obj.className='XWiki.XWikiUsers' and
doc.fullName<>'XWiki.Admin'"))
* deleting $userDoc ...
#set($uDoc = $xwiki.getDocument($userDoc))
$uDoc.delete()
#end
(Not tested)
Regards,
Jerome.
Hi,
How can i delete all the users from xwiki except XWiki.Admin.
Like (Create Dummy Users Snippet).
--
Prathap
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs