cancel
Showing results for 
Search instead for 
Did you mean: 

Delet File but not really deleted

tomekdomek
Champ in-the-making
Champ in-the-making
Hello i deleted a file in the webclcient but it is still in teh alf_data contentstore!!!

Why isnt this one being deleted to?
#
So that kind means that even deleted files are kept on the file server!???

So just the link in the Database to the Filesystem i deleted?
7 REPLIES 7

gavinc
Champ in-the-making
Champ in-the-making
Delete is a "soft delete". When you delete something the deleted item goes to the archive store.

In the client drop down the More Actions menu in the header area and you'll see a "Manage Deleted Items" entry. Select this and you'll be taken to a dialog where you can see all the files you've deleted.

From here you can either permanently delete them or recover them.

tomekdomek
Champ in-the-making
Champ in-the-making
Oh thanx i even didnt know that 🙂

but now i deleted the from the managedeletedfiles  permanently but when i go the alf_date folder on the server the binaries are still available.why?

I deleted them permanently but they are still in the conentstore!!!
and where is the archive store do you mean conentstored.deleted?

anyways the arent there!!!

gavinc
Champ in-the-making
Champ in-the-making
I believe there is a background process that runs which deletes the binaries, so files may not disappear immediately.

The internal name for the workspace the deleted items are placed in is called the archiveStore, but the folder on the filesystem holding the deleted content is indeed contentstore.deleted

tomekdomek
Champ in-the-making
Champ in-the-making
i looked today again and the deleted files are still in the contentstore.i hoped too, that maybe after some time they will be gone but it dont work. is there a log option to log option which can be activated to see whats goin on while deleting?

derek
Star Contributor
Star Contributor

   <bean id="contentStoreCleaner" class="org.alfresco.repo.content.cleanup.ContentStoreCleaner" >
      <property name="dictionaryService">
         <ref bean="dictionaryService" />
      </property>
      <property name="nodeDaoService" >
         <ref bean="nodeDaoService" />
      </property>
      <property name="transactionService" >
         <ref bean="transactionComponent" />
      </property>
      <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>

Override the bean to adjust the behaviour.

burner
Champ in-the-making
Champ in-the-making
What do i have to overwrite?The amount of days or what?
It is still not deleting!

derek
Star Contributor
Star Contributor
Check the scheduled-jobs-context.xml for when the process is scheduled to run.  It is set to run at 4am by default.  Change this if you aren't running your server overnight.  Then, combined with the number of days to protect the content, you should see items being transferred to the trashcan content store (contentstore.deleted).

This functionality works, so it is just a question of sorting the configuration out.

Regards