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/