<?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 get all nodes by metadata property value in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/get-all-nodes-by-metadata-property-value/m-p/485974#M39761</link>
    <description>&lt;P&gt;When I called&amp;nbsp;&lt;BR /&gt;&lt;A target="_blank" rel="noopener"&gt;http://&amp;lt;&amp;lt;ALFRESCO_SERVER&amp;gt;&amp;gt;/alfresco/service/api/server&lt;/A&gt;&lt;BR /&gt;I got&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
 "data": {
 "edition": "Community",
 "version": "5.2.0 (re21f2be5-b22)",
 "schema": "10057"
 }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now, &lt;STRONG&gt;my objective is to purge (delete) all the documents (nodes) that has a (metadata) property value.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;In version &lt;STRONG&gt;5.2.0,&lt;/STRONG&gt; I do not know if a plain &lt;STRONG&gt;Rest API&lt;/STRONG&gt; is available where I can do the following:&lt;BR /&gt;Write a Java or another script (powershell, python) to call this rest api, to retrieve all nodes that has this property value, and then issue a delete for each. Make sure the deleted node would not be available in archive store.&lt;BR /&gt;Please let me know if this is possible.&lt;BR /&gt;&lt;BR /&gt;I am working on a &lt;STRONG&gt;CMIS solution&lt;/STRONG&gt; - Java program that uses CMIS. I find that deleting from here puts the content in archive store. Client is expecting a purge meaning there should not be any trace of these files right away. Somewhere I saw this recommendation that if I add this aspect -&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;P:sys:temporary&lt;/EM&gt; &lt;/STRONG&gt;- to the document before issuing a delete, it will guarantee to not putting it in archive. I need to confirm this.&lt;BR /&gt;&lt;BR /&gt;Also, I do not know if going behind the scenes to postgres database, and delete matching records from the active, version and archive stores in alf_node table is a correct and good idea.&lt;BR /&gt;&lt;BR /&gt;To me, writing and deploying custom webscripts or an AMP/Jar will be time consuming. This is part of a product that is in end-of-life phase. If this is the only option, I can go with this.&lt;BR /&gt;&lt;BR /&gt;Do you have any suggestions?&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2025 20:38:10 GMT</pubDate>
    <dc:creator>edisonpaulgdev</dc:creator>
    <dc:date>2025-01-08T20:38:10Z</dc:date>
    <item>
      <title>get all nodes by metadata property value</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-all-nodes-by-metadata-property-value/m-p/485974#M39761</link>
      <description>&lt;P&gt;When I called&amp;nbsp;&lt;BR /&gt;&lt;A target="_blank" rel="noopener"&gt;http://&amp;lt;&amp;lt;ALFRESCO_SERVER&amp;gt;&amp;gt;/alfresco/service/api/server&lt;/A&gt;&lt;BR /&gt;I got&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
 "data": {
 "edition": "Community",
 "version": "5.2.0 (re21f2be5-b22)",
 "schema": "10057"
 }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now, &lt;STRONG&gt;my objective is to purge (delete) all the documents (nodes) that has a (metadata) property value.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;In version &lt;STRONG&gt;5.2.0,&lt;/STRONG&gt; I do not know if a plain &lt;STRONG&gt;Rest API&lt;/STRONG&gt; is available where I can do the following:&lt;BR /&gt;Write a Java or another script (powershell, python) to call this rest api, to retrieve all nodes that has this property value, and then issue a delete for each. Make sure the deleted node would not be available in archive store.&lt;BR /&gt;Please let me know if this is possible.&lt;BR /&gt;&lt;BR /&gt;I am working on a &lt;STRONG&gt;CMIS solution&lt;/STRONG&gt; - Java program that uses CMIS. I find that deleting from here puts the content in archive store. Client is expecting a purge meaning there should not be any trace of these files right away. Somewhere I saw this recommendation that if I add this aspect -&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;P:sys:temporary&lt;/EM&gt; &lt;/STRONG&gt;- to the document before issuing a delete, it will guarantee to not putting it in archive. I need to confirm this.&lt;BR /&gt;&lt;BR /&gt;Also, I do not know if going behind the scenes to postgres database, and delete matching records from the active, version and archive stores in alf_node table is a correct and good idea.&lt;BR /&gt;&lt;BR /&gt;To me, writing and deploying custom webscripts or an AMP/Jar will be time consuming. This is part of a product that is in end-of-life phase. If this is the only option, I can go with this.&lt;BR /&gt;&lt;BR /&gt;Do you have any suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 20:38:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-all-nodes-by-metadata-property-value/m-p/485974#M39761</guid>
      <dc:creator>edisonpaulgdev</dc:creator>
      <dc:date>2025-01-08T20:38:10Z</dc:date>
    </item>
  </channel>
</rss>

