<?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: Automation chain : blob binaries metadata : How to remove binarie file physicaly when reset metadata value ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-blob-binaries-metadata-how-to-remove-binarie/m-p/318011#M5012</link>
    <description>&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/Screenshot_2014-04-30_17.53.55.png" alt="alt text" /&gt;Hi,&lt;/P&gt;
&lt;P&gt;In the admin center, you can remove all orphans binaries via an action (cf. screencap)&lt;/P&gt;
&lt;P&gt;When you remove a blob from a document, only the link is destroyed between the Nx document and the binary. (e.g. &lt;A href="http://localhost:8080/nuxeo/site/automation/doc?id=Blob.Remove" target="test_blank"&gt;http://localhost:8080/nuxeo/site/automation/doc?id=Blob.Remove&lt;/A&gt; on your local Nuxeo server)&lt;/P&gt;
&lt;P&gt;Here is the code doing the job:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;import org.nuxeo.ecm.core.storage.sql.management.RepositoryStatus;

RepositoryStatus status = new RepositoryStatus();
if (!status.isBinariesGCInProgress()) {
    status.gcBinaries(true);
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Apr 2014 18:01:44 GMT</pubDate>
    <dc:creator>Vladimir_Pasqui</dc:creator>
    <dc:date>2014-04-30T18:01:44Z</dc:date>
    <item>
      <title>Automation chain : blob binaries metadata : How to remove binarie file physicaly when reset metadata value ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-blob-binaries-metadata-how-to-remove-binarie/m-p/318010#M5011</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to know how to delete physically a binarie file when in an automation chain we "remove content" of a metadata field ? Is it done with an automation operation ?&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2014 15:30:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-blob-binaries-metadata-how-to-remove-binarie/m-p/318010#M5011</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2014-04-30T15:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Automation chain : blob binaries metadata : How to remove binarie file physicaly when reset metadata value ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-blob-binaries-metadata-how-to-remove-binarie/m-p/318011#M5012</link>
      <description>&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/Screenshot_2014-04-30_17.53.55.png" alt="alt text" /&gt;Hi,&lt;/P&gt;
&lt;P&gt;In the admin center, you can remove all orphans binaries via an action (cf. screencap)&lt;/P&gt;
&lt;P&gt;When you remove a blob from a document, only the link is destroyed between the Nx document and the binary. (e.g. &lt;A href="http://localhost:8080/nuxeo/site/automation/doc?id=Blob.Remove" target="test_blank"&gt;http://localhost:8080/nuxeo/site/automation/doc?id=Blob.Remove&lt;/A&gt; on your local Nuxeo server)&lt;/P&gt;
&lt;P&gt;Here is the code doing the job:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;import org.nuxeo.ecm.core.storage.sql.management.RepositoryStatus;

RepositoryStatus status = new RepositoryStatus();
if (!status.isBinariesGCInProgress()) {
    status.gcBinaries(true);
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Apr 2014 18:01:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-blob-binaries-metadata-how-to-remove-binarie/m-p/318011#M5012</guid>
      <dc:creator>Vladimir_Pasqui</dc:creator>
      <dc:date>2014-04-30T18:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Automation chain : blob binaries metadata : How to remove binarie file physicaly when reset metadata value ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-blob-binaries-metadata-how-to-remove-binarie/m-p/318012#M5013</link>
      <description>&lt;P&gt;Ok thank you very much.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2014 17:42:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-blob-binaries-metadata-how-to-remove-binarie/m-p/318012#M5013</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2014-05-15T17:42:29Z</dc:date>
    </item>
  </channel>
</rss>

