<?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 Deleting files in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/deleting-files/m-p/248342#M201472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ppl!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying&amp;nbsp; to build a script to delete some files when this files expires.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For exemple: One file is uploaded to the repository, after 10 days this file must be deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to do this using cron to execute a JavaScript that verify if the file is ok to delete or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that I dont even know if cron executes a javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If somebody has any ideia…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 02:36:01 GMT</pubDate>
    <dc:creator>ltardioli</dc:creator>
    <dc:date>2012-05-30T02:36:01Z</dc:date>
    <item>
      <title>Deleting files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-files/m-p/248342#M201472</link>
      <description>Hi ppl!I'm trying&amp;nbsp; to build a script to delete some files when this files expires.For exemple: One file is uploaded to the repository, after 10 days this file must be deleted.I'm trying to do this using cron to execute a JavaScript that verify if the file is ok to delete or not.The problem is that I</description>
      <pubDate>Wed, 30 May 2012 02:36:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-files/m-p/248342#M201472</guid>
      <dc:creator>ltardioli</dc:creator>
      <dc:date>2012-05-30T02:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-files/m-p/248343#M201473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From cron you can run script through script action.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 04:15:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-files/m-p/248343#M201473</guid>
      <dc:creator>lementree</dc:creator>
      <dc:date>2012-05-30T04:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-files/m-p/248344#M201474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you turn your script into a web script it is possible to call it form cron using curl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;curl -d '' -u user:pass &lt;A href="http://server:8080/alfresco/service/your/webscript" rel="nofollow noopener noreferrer"&gt;http://server:8080/alfresco/service/your/webscript&lt;/A&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a good introduction to web scripts: &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-webscripts/web-script-article.pdf" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/images/articles/alfresco-webscripts/web-script-article.pdf&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:51:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-files/m-p/248344#M201474</guid>
      <dc:creator>jonash</dc:creator>
      <dc:date>2012-06-15T12:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-files/m-p/248345#M201475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Another option would be to create a scheduled action that executes the script. Loftux gives an example in this forum thread: &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?p=115018#p115018" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?p=115018#p115018&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:57:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-files/m-p/248345#M201475</guid>
      <dc:creator>jonash</dc:creator>
      <dc:date>2012-06-15T12:57:54Z</dc:date>
    </item>
  </channel>
</rss>

