I am currently deleting a document from Nuxeo repository using the following code:
String myDocumentPath = // path to a folder
DocumentRef myFolderRef = new PathRef(documentPath);
<p>if(aSession.exists(myFolderRef) && aSession.canRemoveDocument(myFolderRef ))
{
aSession.removeChildren(myFolderRef);
}
</p>
All the files under the folder gets deleted successfully but not permanently. I was wondering if there is anyway I could delete documents permanently programatically including binaries on file system?
I dont want to wait for the Garbage collector to delete those binaries from file system after the retentions period.
Thanks.