<?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 configure trashcan cleaner in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-trashcan-cleaner/m-p/125444#M34203</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to configure trashcan-cleaner to wipe documents older than 1 day in ACS 7.1 Community Edition. But cannot get it to work.&lt;/P&gt;&lt;PRE&gt;# cron schedule for the Trashcan Cleaner job
trashcan-cleaner.cron=0 0/30 * * * ?

# the period for which trashcan items are kept (in java.time.Duration format)
# default is 28 days
trashcan-cleaner.keepPeriod=P1D
&lt;BR /&gt;# how many trashcan items to delete per job run
trashcan-cleaner.deleteBatchCount=1000

# move orphans to deleted contentstore after 1 day (default 14 days)
system.content.orphanProtectDays=1

# purge content instead of moving to deleted contentstore
system.content.eagerOrphanCleanup=true&lt;/PRE&gt;&lt;P&gt;And I've enabled debug logging and there I can see the cron is starting every 30 minutes as wanted.&lt;/P&gt;&lt;PRE&gt;2022-05-25 10:00:00,004  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-7] Running TrashcanCleaner
2022-05-25 10:00:00,031  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-7] Number of nodes to delete: 0
2022-05-25 10:00:00,032  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-7] Number of deleted nodes: 0
2022-05-25 10:00:00,032  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-7] TrashcanCleaner finished
2022-05-25 10:30:00,004  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-10] Running TrashcanCleaner
2022-05-25 10:30:00,028  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-10] Number of nodes to delete: 0
2022-05-25 10:30:00,029  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-10] Number of deleted nodes: 0
2022-05-25 10:30:00,029  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-10] TrashcanCleaner finished&lt;/PRE&gt;&lt;P&gt;But the files are still in the trash can.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="over 2 days since deleted" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1530i69643856865821CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;over 2 days since deleted&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 09:13:42 GMT</pubDate>
    <dc:creator>joachim</dc:creator>
    <dc:date>2022-05-25T09:13:42Z</dc:date>
    <item>
      <title>How to configure trashcan cleaner</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-trashcan-cleaner/m-p/125444#M34203</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to configure trashcan-cleaner to wipe documents older than 1 day in ACS 7.1 Community Edition. But cannot get it to work.&lt;/P&gt;&lt;PRE&gt;# cron schedule for the Trashcan Cleaner job
trashcan-cleaner.cron=0 0/30 * * * ?

# the period for which trashcan items are kept (in java.time.Duration format)
# default is 28 days
trashcan-cleaner.keepPeriod=P1D
&lt;BR /&gt;# how many trashcan items to delete per job run
trashcan-cleaner.deleteBatchCount=1000

# move orphans to deleted contentstore after 1 day (default 14 days)
system.content.orphanProtectDays=1

# purge content instead of moving to deleted contentstore
system.content.eagerOrphanCleanup=true&lt;/PRE&gt;&lt;P&gt;And I've enabled debug logging and there I can see the cron is starting every 30 minutes as wanted.&lt;/P&gt;&lt;PRE&gt;2022-05-25 10:00:00,004  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-7] Running TrashcanCleaner
2022-05-25 10:00:00,031  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-7] Number of nodes to delete: 0
2022-05-25 10:00:00,032  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-7] Number of deleted nodes: 0
2022-05-25 10:00:00,032  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-7] TrashcanCleaner finished
2022-05-25 10:30:00,004  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-10] Running TrashcanCleaner
2022-05-25 10:30:00,028  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-10] Number of nodes to delete: 0
2022-05-25 10:30:00,029  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-10] Number of deleted nodes: 0
2022-05-25 10:30:00,029  INFO  [alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-10] TrashcanCleaner finished&lt;/PRE&gt;&lt;P&gt;But the files are still in the trash can.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="over 2 days since deleted" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1530i69643856865821CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;over 2 days since deleted&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 09:13:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-trashcan-cleaner/m-p/125444#M34203</guid>
      <dc:creator>joachim</dc:creator>
      <dc:date>2022-05-25T09:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure trashcan cleaner</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-trashcan-cleaner/m-p/125445#M34204</link>
      <description>&lt;P&gt;No hints? The files are still&amp;nbsp; in the trash can one week later.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 10:59:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-trashcan-cleaner/m-p/125445#M34204</guid>
      <dc:creator>joachim</dc:creator>
      <dc:date>2022-06-01T10:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure trashcan cleaner</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-trashcan-cleaner/m-p/125446#M34205</link>
      <description>&lt;P&gt;Anyone got this working in ACS 7.1?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:26:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-trashcan-cleaner/m-p/125446#M34205</guid>
      <dc:creator>joachim</dc:creator>
      <dc:date>2022-06-16T06:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure trashcan cleaner</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-trashcan-cleaner/m-p/125447#M34206</link>
      <description>&lt;P&gt;Did you find a solution to this problem ?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 17:51:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-trashcan-cleaner/m-p/125447#M34206</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2024-01-26T17:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure trashcan cleaner</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-trashcan-cleaner/m-p/125448#M34207</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Sadly, no.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 05:22:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-trashcan-cleaner/m-p/125448#M34207</guid>
      <dc:creator>joachim</dc:creator>
      <dc:date>2024-01-29T05:22:24Z</dc:date>
    </item>
  </channel>
</rss>

