<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Delete attachment  thorough Java  in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/delete-attachment-thorough-java/m-p/316336#M3337</link>
    <description>&lt;P&gt;Please, don't cross-post over sites&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2016 15:21:45 GMT</pubDate>
    <dc:creator>Julien_Carsique</dc:creator>
    <dc:date>2016-09-08T15:21:45Z</dc:date>
    <item>
      <title>Delete attachment  thorough Java</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/delete-attachment-thorough-java/m-p/316335#M3336</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;doc.getCoreSession().removeDocument(doc.getRef()); doc.getCoreSession().save();&lt;/P&gt;
&lt;P&gt;But how I can delete the file and attachment through my java code. Please provide me a snippet of code.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 08:26:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/delete-attachment-thorough-java/m-p/316335#M3336</guid>
      <dc:creator>Souvik_</dc:creator>
      <dc:date>2016-09-07T08:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete attachment  thorough Java</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/delete-attachment-thorough-java/m-p/316336#M3337</link>
      <description>&lt;P&gt;Please, don't cross-post over sites&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 15:21:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/delete-attachment-thorough-java/m-p/316336#M3337</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2016-09-08T15:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete attachment  thorough Java</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/delete-attachment-thorough-java/m-p/316337#M3338</link>
      <description>&lt;P&gt;The code will be..&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;DocumentHelper.removeProperty(documentModel, path);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;path = file:content for main file. For attachment "files/content[array index]"&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 08:31:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/delete-attachment-thorough-java/m-p/316337#M3338</guid>
      <dc:creator>Souvik_</dc:creator>
      <dc:date>2016-09-21T08:31:10Z</dc:date>
    </item>
  </channel>
</rss>

