Thanks, it works ! :)
Best regards,
Jeremie
2010/2/2 Sergiu Dumitriu <sergiu(a)xwiki.com>
On 02/01/2010 03:01 PM, Jeremie BOUSQUET wrote:
Hi,
I'd like to know if there is a way to delete a document (in velocity or
groovy) without putting in in recycle bin ? (equivalent of
"shift-delete").
I have to regularly delete (for tests) documents with heavy attachments,
and
it's quite long ... And I don't care
about retrieving them later.
You can do it if you have programming rights, with:
$xwiki.getXWiki().deleteDocument($doc.getDocument(), false,
$context.context)
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users