Thanks Louis-Marie,
I've programming right (that will part of an automatic process)

Arnaud.

2013/3/19 Guillaume "Louis-Marie" Delhumeau <gdelhum...@xwiki.com>:
> 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/xwiki/platform/xwiki-platform-oldcore/4.5.2/xwiki-platform-oldcore-4.5.2-javadoc.jar/!/com/xpn/xwiki/XWiki.html#deleteDocument%28com.xpn.xwiki.doc.XWikiDocument,%20boolean,%20com.xpn.xwiki.XWikiContext%29
>
> I hope it helps,
>
> Louis-Marie
>
> 2013/3/18 Arnaud bourree <arnaud.bour...@gmail.com>
>
>> 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
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to