I'm guessing you could use something like:

http://code.xwiki.org/xwiki/bin/view/Snippets/DeleteSpaceSnippet

to build a listing of the files versions and then create links or checkboxes
or something like that to delete the ones you are interested in.

You can get the full list of versions using $doc.getRevisions() which
returns a org.suigeneris.jrcs.rcs.Version[]. You could then iterate through
that list and delete all versions but the last.


HTH,
.:. Kevin
-- 
View this message in context: 
http://n2.nabble.com/Purge-Document-Versions-via-Script-tp2192579p2192728.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to