From Nuxeo REST API Document, I can see the deleted file/folder in TRASH with this code
SELECT * FROM Document WHERE ecm:mixinType != 'HiddenInNavigation'
AND ecm:currentLifeCycleState = 'deleted' AND ecm:isProxy = 0 AND ecm:isCheckedInVersion = 0
But how can I update the Document with ecm:currentLifeCycleState
to move Document to TRASH?
Thank you
Here is the code I used to move a document to trash.
And the following code would delete the document permanently.
One way is to find the documents in trash first via a NXQL, like:
And then delete them permanently via the method above. There is also a post mentioning this: http://answers.nuxeo.com/questions/1830/actioncommand-to-permanently-delete-all-document-in-trash
Utility method: fetch a document by documentId: