<?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: Deleting old files in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/deleting-old-files/m-p/307674#M260804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The results would be devastating. You would wreck your system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have 2 components that have references to the underlying files nameley the postgeSQL database and Solr indexing if you remove the files you will get mayhem as there will be pointers to missing content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way to delete content is via Alfresco itself. You can automate this via java / javascript but don't delete to many at once or you will run out of transaction space. Also, to avoid these going into the trashcan you could do to add the aspect sys:temporary to each document / folder before deleting it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should read up on the content life cycle (there are good articles on the internet) but quickly, deleteing an item without sys:temporary moves it to trash where it stays until you delete it from there and then disappears from Alfresco and it gets moved to contentstore.deleted some days later based on config setting. With sys:temporary it does not get put in the trash and it is moved to contentstore.deleted after a period of time based on config setting. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anything in contentstore.deleted can be deleted from the disk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Oct 2015 11:11:00 GMT</pubDate>
    <dc:creator>rjohnson</dc:creator>
    <dc:date>2015-10-21T11:11:00Z</dc:date>
    <item>
      <title>Deleting old files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-old-files/m-p/307672#M260802</link>
      <description>We are running Enterprise - v4.2.4 for our QA environments.&amp;nbsp; Over the last year or so, we created a lot of content.du -sh contentstore78G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contentstoredu -a contentstore | wc -l1289235I would like to delete all files that are over a month old as our testers do not need that old content.&amp;nbsp; How can</description>
      <pubDate>Tue, 20 Oct 2015 02:18:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-old-files/m-p/307672#M260802</guid>
      <dc:creator>mark_mcwhinney</dc:creator>
      <dc:date>2015-10-20T02:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting old files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-old-files/m-p/307673#M260803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I just run this would it work or cause a lot of damage?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;rm -rf contentstore/2014/*&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 19:33:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-old-files/m-p/307673#M260803</guid>
      <dc:creator>mark_mcwhinney</dc:creator>
      <dc:date>2015-10-20T19:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting old files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-old-files/m-p/307674#M260804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The results would be devastating. You would wreck your system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have 2 components that have references to the underlying files nameley the postgeSQL database and Solr indexing if you remove the files you will get mayhem as there will be pointers to missing content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way to delete content is via Alfresco itself. You can automate this via java / javascript but don't delete to many at once or you will run out of transaction space. Also, to avoid these going into the trashcan you could do to add the aspect sys:temporary to each document / folder before deleting it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should read up on the content life cycle (there are good articles on the internet) but quickly, deleteing an item without sys:temporary moves it to trash where it stays until you delete it from there and then disappears from Alfresco and it gets moved to contentstore.deleted some days later based on config setting. With sys:temporary it does not get put in the trash and it is moved to contentstore.deleted after a period of time based on config setting. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anything in contentstore.deleted can be deleted from the disk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 11:11:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-old-files/m-p/307674#M260804</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2015-10-21T11:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting old files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-old-files/m-p/307675#M260805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 18:03:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-old-files/m-p/307675#M260805</guid>
      <dc:creator>mark_mcwhinney</dc:creator>
      <dc:date>2015-10-21T18:03:20Z</dc:date>
    </item>
  </channel>
</rss>

