cancel
Showing results for 
Search instead for 
Did you mean: 

change default times for file deletion

MrNico
Star Contributor
Star Contributor

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?

1 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager

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

Hyland Developer Evangelist

View answer in original post

1 REPLY 1

angelborroy
Community Manager Community Manager
Community Manager

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

Hyland Developer Evangelist