Trash a Document using java-client

Hi,

How do I trash a document before it is deleted using nuxeo java client. I have used nuxeoClient.repository().deleteDocument(docId); method which delets the document permanently but I wanted to trash the document first before deleting permanently. Any idea how it can be done.

0 votes

1 answers

1021 views

ANSWER



Document docPresence = nuxeoClient.repository().fetchDocumentByPath(path); docPresence.trash() solved my question

0 votes