How to configure trashcan cleaner

cancel
Showing results for 
Search instead for 
Did you mean: 
joachim
Active Member

How to configure trashcan cleaner

Hello,

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.

# 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

# 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

And I've enabled debug logging and there I can see the cron is starting every 30 minutes as wanted.

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

 

But the files are still in the trash can.

over 2 days since deletedover 2 days since deleted

4 Replies
joachim
Active Member

Re: How to configure trashcan cleaner

No hints? The files are still  in the trash can one week later.

joachim
Active Member

Re: How to configure trashcan cleaner

Anyone got this working in ACS 7.1?

4535992
Senior Member

Re: How to configure trashcan cleaner

Did you find a solution to this problem ?

joachim
Active Member

Re: How to configure trashcan cleaner

Hello,

Sadly, no.