<?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 Attachments through API in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/delete-attachments-through-api/m-p/317177#M4178</link>
    <description>&lt;P&gt;Hi Kartik,&lt;/P&gt;
&lt;P&gt;Both Blob.Remove and Document.RemoveProperty are, basically, the same. The difference is Blob.Remove has default "xpath" parameter with default value "file:content". I think you are asking about delete attachments of document, so for that, you need to make your request with the payload with correct params with xpath of file attachment, for example, to delete the &lt;EM&gt;first&lt;/EM&gt; attachment of &lt;EM&gt;your-doc-id&lt;/EM&gt; document:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;POST $HOST/nuxeo/site/automation/Blob.Remove
POST $HOST/nuxeo/site/automation/Document.RemoveProperty
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With raw-body:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
   "input": "your-doc-id",
   "params": {
        "xpath": "files/content[0]"
   }
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope this helps,
VS!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2016 23:29:49 GMT</pubDate>
    <dc:creator>Victor_Sánchez</dc:creator>
    <dc:date>2016-03-10T23:29:49Z</dc:date>
    <item>
      <title>Delete Attachments through API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/delete-attachments-through-api/m-p/317176#M4177</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;I am not able to delete attachments through API. When i use Blob.RemoveFromDocument from API it only deleted the contents of file but not the entry of that attachment.
Can anyone help me on this issue.

Regards
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2016 13:25:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/delete-attachments-through-api/m-p/317176#M4177</guid>
      <dc:creator>kartik_sn</dc:creator>
      <dc:date>2016-03-10T13:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Attachments through API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/delete-attachments-through-api/m-p/317177#M4178</link>
      <description>&lt;P&gt;Hi Kartik,&lt;/P&gt;
&lt;P&gt;Both Blob.Remove and Document.RemoveProperty are, basically, the same. The difference is Blob.Remove has default "xpath" parameter with default value "file:content". I think you are asking about delete attachments of document, so for that, you need to make your request with the payload with correct params with xpath of file attachment, for example, to delete the &lt;EM&gt;first&lt;/EM&gt; attachment of &lt;EM&gt;your-doc-id&lt;/EM&gt; document:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;POST $HOST/nuxeo/site/automation/Blob.Remove
POST $HOST/nuxeo/site/automation/Document.RemoveProperty
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With raw-body:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
   "input": "your-doc-id",
   "params": {
        "xpath": "files/content[0]"
   }
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope this helps,
VS!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 23:29:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/delete-attachments-through-api/m-p/317177#M4178</guid>
      <dc:creator>Victor_Sánchez</dc:creator>
      <dc:date>2016-03-10T23:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Attachments through API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/delete-attachments-through-api/m-p/317178#M4179</link>
      <description>&lt;P&gt;Hi Victor,&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 06:11:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/delete-attachments-through-api/m-p/317178#M4179</guid>
      <dc:creator>kartik_sn</dc:creator>
      <dc:date>2016-03-11T06:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Attachments through API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/delete-attachments-through-api/m-p/317179#M4180</link>
      <description>&lt;P&gt;Did you launch your request with another index of "xpath"&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:29:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/delete-attachments-through-api/m-p/317179#M4180</guid>
      <dc:creator>Victor_Sánchez</dc:creator>
      <dc:date>2016-03-11T15:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Attachments through API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/delete-attachments-through-api/m-p/317180#M4181</link>
      <description>&lt;P&gt;Scenario&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 08:47:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/delete-attachments-through-api/m-p/317180#M4181</guid>
      <dc:creator>kartik_sn</dc:creator>
      <dc:date>2016-03-15T08:47:06Z</dc:date>
    </item>
  </channel>
</rss>

