cancel
Showing results for 
Search instead for 
Did you mean: 

Remove files from the deletedContentStore

naresh1987
Champ in-the-making
Champ in-the-making
How does one go about deleting files in the deletedContentStore?
Cheers.
4 REPLIES 4

janv
Employee
Employee
The content store cleaner will handle this, refer to: http://wiki.alfresco.com/wiki/Content_Store_Configuration#Deleting_Files

Regards,
Jan

naresh1987
Champ in-the-making
Champ in-the-making
Hi there,

Thanks for your reply, I have already read this section, but the problem that I had is this section here:

Note that this configuration will not actually remove the files from the file system but rather moves them to the designated deletedContentStore, usually contentstore.deleted. The files can be removed from the deletedContentStore via script or cron job once an appropriate backup has been performed.

The problem that I now have is how do i remove these files via script or cron job? Can someone provide me with some example code?

Cheers

janv
Employee
Employee
Good point. The content store cleaner can either move (eg. sequester to contentstore.deleted) or erase (ie. throw away) the orphaned content.

Everything you see in "contentstore.deleted" has been sequestered and can be removed at will and with impunity … for example by writing a simple cron/scheduled script to delete all files from "contentStore.deleted" on a regular basis.

Alternatively, if you have a suitable backup strategy and wish to erase then refer to: http://wiki.alfresco.com/wiki/Content_Store_Configuration#Eager_Content_Cleanup

Regards,
Jan

naresh1987
Champ in-the-making
Champ in-the-making
Hi Janv,

Thanks alot for your reply. I just have a quick question before i proceed further. Are the files that are located in the contentStore.Deleted repository the same as those located within the archive://SpacesStore repository, as one can see in the admin tool. Are the repositories the same? or are they different. At the moment our archive://SpacesStore has alot of content in it which we are trying to remove so by running this job this will this also free up the archive repository, if they are both one and the same?

EDIT : Another thing that i wanted to mention was, if I use the Eager Content Deletion method, will this delete content that is already existing in the contentDeleted.store, or only content that is added after the eager deletion method is implemented, as the problem that i have is removing the data that exists in this store at this point in time.

Cheers