Thanks Louis-Marie, I've programming right (that will part of an automatic process) Arnaud. 2013/3/19 Guillaume "Louis-Marie" Delhumeau <[email protected]>:
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
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users