cancel
Showing results for 
Search instead for 
Did you mean: 

Delete files from Alfresco

ezernova
Champ in-the-making
Champ in-the-making

Hi guys! I need to change the minimum time that content binaries are kept in the contentStore and the time the Content Store Cleaner job runs. What shoul I do? Where can I find protectDays property? What's the file name and where is it located? 

I mean this:

<bean id="contentStoreCleaner" class="org.alfresco.repo.content.cleanup.ContentStoreCleaner" >     ...      <property name="protectDays" >        <value>14</value>     </property>     <property name="stores" >        <list>           <ref bean="fileContentStore" />        </list>     </property>     <property name="listeners" >        <list>           <ref bean="deletedContentBackupListener" />        </list>     </property>  </bean>

How to change the schedule for Content Store Cleaner job?

Is there a way to remove files from recycle bin automatically, not manually? 

I'm running Alfresco Community - 5.2.0 

1 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager

You should include you property system.content.orphanProtectDays in alfresco-global.properties. This will override default value.

Content stores overview | Alfresco Documentation 

To delete automatically files from Recycle bin you can configure TrashCan Cleaner in alfresco-global.properties.

Configuring the Trashcan Cleaner | Alfresco Documentation 

To delete automatically files from Content Store Delete you can use this addon https://github.com/keensoft/alfresco-deleted-content-store-cleaner or simply use a cron to remove files periodically.

Hyland Developer Evangelist

View answer in original post

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

You should include you property system.content.orphanProtectDays in alfresco-global.properties. This will override default value.

Content stores overview | Alfresco Documentation 

To delete automatically files from Recycle bin you can configure TrashCan Cleaner in alfresco-global.properties.

Configuring the Trashcan Cleaner | Alfresco Documentation 

To delete automatically files from Content Store Delete you can use this addon https://github.com/keensoft/alfresco-deleted-content-store-cleaner or simply use a cron to remove files periodically.

Hyland Developer Evangelist

ezernova
Champ in-the-making
Champ in-the-making

Thanks a lot!