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

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.