cancel
Showing results for 
Search instead for 
Did you mean: 

Trash a Document using java-client

Jyothsna_SM1
Champ in-the-making
Champ in-the-making

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.

1 REPLY 1

Jyothsna_SM1
Champ in-the-making
Champ in-the-making

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