<?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 Write a NXQL query to purge deleted documents in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/write-a-nxql-query-to-purge-deleted-documents/m-p/320558#M7559</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to create a purge of deleted documents for more than 2 months after the last modification date.&lt;/P&gt;
&lt;P&gt;Can we write a NXQL query like this :&lt;/P&gt;
&lt;P&gt;SELECT * FROM Document WHERE ecm: currentLifeCycleState = 'deleted' AND (dc: modified + INTERVAL '2 month') &amp;lt; TIMESTAMP '2012-08-30 14:00:00'&lt;/P&gt;
&lt;P&gt;Or another method?&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Thu, 30 Aug 2012 15:11:17 GMT</pubDate>
    <dc:creator>Pierre_Jenicot1</dc:creator>
    <dc:date>2012-08-30T15:11:17Z</dc:date>
    <item>
      <title>Write a NXQL query to purge deleted documents</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/write-a-nxql-query-to-purge-deleted-documents/m-p/320558#M7559</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to create a purge of deleted documents for more than 2 months after the last modification date.&lt;/P&gt;
&lt;P&gt;Can we write a NXQL query like this :&lt;/P&gt;
&lt;P&gt;SELECT * FROM Document WHERE ecm: currentLifeCycleState = 'deleted' AND (dc: modified + INTERVAL '2 month') &amp;lt; TIMESTAMP '2012-08-30 14:00:00'&lt;/P&gt;
&lt;P&gt;Or another method?&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 15:11:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/write-a-nxql-query-to-purge-deleted-documents/m-p/320558#M7559</guid>
      <dc:creator>Pierre_Jenicot1</dc:creator>
      <dc:date>2012-08-30T15:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Write a NXQL query to purge deleted documents</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/write-a-nxql-query-to-purge-deleted-documents/m-p/320559#M7560</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The better is to use an automation chain and fetch by query documents to remove definitely.&lt;/P&gt;
&lt;P&gt;So here is the request I would put into the Fetch &amp;gt; Query operation (becarefule no space between "ecm and :" and "dc and :):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM Document WHERE ecm:currentLifeCycleState = 'deleted' AND dc:modified &amp;lt; TIMESTAMP '@{CurrentDate.months(2).format("yyyy-MM-dd HH:mm:ss")'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Aug 2012 17:25:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/write-a-nxql-query-to-purge-deleted-documents/m-p/320559#M7560</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-08-30T17:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Write a NXQL query to purge deleted documents</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/write-a-nxql-query-to-purge-deleted-documents/m-p/320560#M7561</link>
      <description>&lt;P&gt;NXQL does not have date interval arithmetic. It could be added though.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2012 15:59:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/write-a-nxql-query-to-purge-deleted-documents/m-p/320560#M7561</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-09-03T15:59:04Z</dc:date>
    </item>
  </channel>
</rss>

