11-30-2021 10:34 AM
hello, I have community alfresco 4.2.f installed, and I wanted to know if it is possible to change the default times for file deletion
For instance:
by default, all orphaned Nodes are protected for 14 days.
How can I change the days in the file deletion cycle?
11-30-2021 11:37 AM
You can set a number of properties in alfresco-global.properties:
# Decide if content should be removed from the system immediately after being orphaned. # Do not change this unless you have examined the impact it has on your backup procedures. system.content.eagerOrphanCleanup=false # The number of days to keep orphaned content in the content stores. # This has no effect on the 'deleted' content stores, which are not automatically emptied. system.content.orphanProtectDays=14 # The action to take when a store or stores fails to delete orphaned content # IGNORE: Just log a warning. The binary remains and the record is expunged # KEEP_URL: Log a warning and create a URL entry with orphan time 0. It won't be processed or removed. system.content.deletionFailureAction=IGNORE # The CRON expression to trigger the deletion of resources associated with orphaned content. system.content.orphanCleanup.cronExpression=0 0 4 * * ?
In addition, you can understand all the Jobs involved in file deletion in https://github.com/keensoft/alfresco-deleted-content-store-cleaner
11-30-2021 11:37 AM
You can set a number of properties in alfresco-global.properties:
# Decide if content should be removed from the system immediately after being orphaned. # Do not change this unless you have examined the impact it has on your backup procedures. system.content.eagerOrphanCleanup=false # The number of days to keep orphaned content in the content stores. # This has no effect on the 'deleted' content stores, which are not automatically emptied. system.content.orphanProtectDays=14 # The action to take when a store or stores fails to delete orphaned content # IGNORE: Just log a warning. The binary remains and the record is expunged # KEEP_URL: Log a warning and create a URL entry with orphan time 0. It won't be processed or removed. system.content.deletionFailureAction=IGNORE # The CRON expression to trigger the deletion of resources associated with orphaned content. system.content.orphanCleanup.cronExpression=0 0 4 * * ?
In addition, you can understand all the Jobs involved in file deletion in https://github.com/keensoft/alfresco-deleted-content-store-cleaner
Explore our Alfresco products with the links below. Use labels to filter content by product module.