Hello,Everyone.i want to delete trashan every 30 minute using trashcan cron.i pasted that in alfresco.properties file:
trashcan-cleaner.cron=0 0/30 * * * ?
trashcan cron is starting.but no files in trash can be deleted.alfresco.log record in alfresco.log:
2018-08-19 22:56:00,051 DEBUG [org.alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-2] Running TrashcanCleaner
2018-08-19 22:56:00,082 DEBUG [org.alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-2] Found 11 nodes on trashcan
2018-08-19 22:56:00,082 DEBUG [org.alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-2] Number of nodes to delete: 0
2018-08-19 22:56:00,082 DEBUG [org.alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-2] Nodes deleted
2018-08-19 22:56:00,082 DEBUG [org.alfresco.trashcan.TrashcanCleaner] [DefaultScheduler_Worker-2] TrashcanCleaner finished
number of deletes is 0.but it found 11 nodes on trashan.why these nodes are not being deleted? How can I solve this problem?
Hi,
The nodes might not be getting deleted as they dont pass the criteria of daysToKeep parameter.
You can configure this param to tell cleaner about number of days deleted docs to be kept in trash can. For e.g. if you configure it as 7, it will remove content from the trashcan and mark them as orphan if a content has been in the trashcan for more than 7 days.
To delete from the trashcan without waiting any grace period set the trashcan.daysToKeep property value to -1.
Hope this helps!!!