Hi Arnaud. You can do it only if you have the Programming Rights. With velocity: #set($document = $xwiki.getDocument("Document Name")) ## Get the internal document #set($xwikidocument = $document.getDocument()) ## Remove it #set($discard = $xwiki.getXWiki().deleteDocument($xwikidocument, false, $xcontext.context)) The second parameter of deleteDocument is "to trash", that I set to false. Doc: http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org... I hope it helps, Louis-Marie 2013/3/18 Arnaud bourree <[email protected]>
Hello
If I used document.delete(), document is moved to trash bin. Documents I want to delete are temporary documents I want definitively deleted. How can I delete document without put it in trash bin? Should I have to open JIRA issue to request trash bin parameter?
Regards,
Arnaud. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users