Delete Specific Attachment From Document
Hello Guys, I have Problem in Removing Specific Attachment From Document. When I try to delete attachment with index 3, it will always delete last attachment that is index 0.
I have tried using below code. DocumentService ds = session.getAdapter(DocumentService.class); org.nuxeo.ecm.automation.client.model.DocRef docRef = new org.nuxeo.ecm.automation.client.model.DocRef(DOCID); ds.removeBlob(docRef, “files/content“);
Please any help would be appreciated.