Delete attachment thorough Java
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2016 04:26 AM
Through my own custom listener I would like to delete main files and attachment from the nuxeo document. Deleting the document seems to be easy as you can use the below code.
doc.getCoreSession().removeDocument(doc.getRef()); doc.getCoreSession().save();
But how I can delete the file and attachment through my java code. Please provide me a snippet of code.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2016 11:21 AM
Please, don't cross-post over sites
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 04:31 AM
The code will be..
DocumentHelper.removeProperty(documentModel, path);
path = file:content for main file. For attachment "files/content[array index]"
