<?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 How to delete content from contentstore that is not referenced in database??? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-content-from-contentstore-that-is-not-referenced/m-p/300471#M253601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so I have a repository that contains binary files under alf_date/contentstore but I don't have that content in alf_content_url table in database. So it is obvious that somehow references to that content are removed from database but not from the file system (don't ask my how, I am new in this project and repository is obviously don't have valid state…). So because that content takes a lot of space on the dist, and I am not sure which binary file has reference in database and which not (there can be hundreds of thousands of documents are invalid), I have to delete that invalid content from file system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if I understand this deletion procedure correctly, when we delete something in application (Explorer or Share) it will go to Trashcan and it will stay there (is still under alf_data/contentstore). When this content is removed from Trashcan it will be marked in database as deleted and it will become orphan content, and by default it will stay in alf_data/contentstore at least 14 days, but after that it should be moved to alf_data/contentstore.deleted and we can remove it from file system at will. But this orphan content that I have problem with is from February 2013, and it still exists in contentstore?!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody has suggestion how I can achieve this? To delete all content from file system that is no longer referenced in database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2014 11:34:34 GMT</pubDate>
    <dc:creator>nenad982</dc:creator>
    <dc:date>2014-05-19T11:34:34Z</dc:date>
    <item>
      <title>How to delete content from contentstore that is not referenced in database???</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-content-from-contentstore-that-is-not-referenced/m-p/300471#M253601</link>
      <description>Hi all,so I have a repository that contains binary files under alf_date/contentstore but I don't have that content in alf_content_url table in database. So it is obvious that somehow references to that content are removed from database but not from the file system (don't ask my how, I am new in this</description>
      <pubDate>Mon, 19 May 2014 11:34:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-content-from-contentstore-that-is-not-referenced/m-p/300471#M253601</guid>
      <dc:creator>nenad982</dc:creator>
      <dc:date>2014-05-19T11:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete content from contentstore that is not referenced in database???</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-content-from-contentstore-that-is-not-referenced/m-p/300472#M253602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the only sure way I can think of at this point is go for a SQL query to export the content URLs and whip up a script to remove these files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, the orphan handling should occur like you have stated. Your situation is indicative of a constellation where - for some reason - this did not work or was possibly circumvented by a poorly written addon (there are ways developers can write code that doesn't necessarily guarantee orphan detection / cleanup by Alfresco).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 08:28:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-content-from-contentstore-that-is-not-referenced/m-p/300472#M253602</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-05-20T08:28:20Z</dc:date>
    </item>
  </channel>
</rss>

