change default times for file deletion

cancel
Showing results for 
Search instead for 
Did you mean: 
MrNico
Customer

change default times for file deletion

Jump to solution

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 Solution

Accepted Solutions
angelborroy
Alfresco Employee

Re: change default times for file deletion

Jump to solution

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 solution in original post

1 Reply
angelborroy
Alfresco Employee

Re: change default times for file deletion

Jump to solution

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