cancel
Showing results for 
Search instead for 
Did you mean: 

disable the recycled bin

mliwski
Champ in-the-making
Champ in-the-making
Hi,
We are using alfresco to store scanned images. We have some problems when we delete an entired folder, with fantom files.

After we delete the files, we can still serch them.

Is there a posibility to disable the recycled bin?

thanks!
3 REPLIES 3

derek
Star Contributor
Star Contributor
Hi,

Are you running on clustered the servers?

To disable the archiving, add the following to your custom-repository-context.xml:
   <bean id="storeArchiveMap" class="org.alfresco.repo.node.StoreArchiveMap">
      <property name="archiveMap">
         <map>
           
         </map>
      </property>
   </bean>
Regards

timbery
Champ in-the-making
Champ in-the-making
I got an error after disabling the archiving under the version 3.3g.
Error Stack:

Caused by: java.lang.NullPointerException
   at org.alfresco.repo.node.StoreArchiveMap.get(StoreArchiveMap.java:73)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.deleteNode(DbNodeServiceImpl.java:802)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.removeChildAssociation(DbNodeServiceImpl.java:1091)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
        …

timbery
Champ in-the-making
Champ in-the-making
Solved!

   <!– Map stores to archive stores –>
   <bean id="storeArchiveMap" class="org.alfresco.repo.node.StoreArchiveMap">
      <property name="archiveMap">
         <map>
         </map>
      </property>
      <property name="tenantService">
         <ref bean="tenantService" />
      </property>
   </bean>