cancel
Showing results for 
Search instead for 
Did you mean: 

Delete ContentStore.deleted in Alf_data

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi all

I have a question about the deleted content that we produce in Alfresco. Normally when you delete an item (document…) this is not removed from your application and gets stored in the ContentStore.deleted folder in alf_data.

To finally remove it from the Alfresco system, we need to go to the admin screen "Manage Deleted Items" and in there Restore/Remove the content.

What we do is removing the content in that screen so we make sure it is not in the Alfresco system and it does not takes space in the hard disk.
At this moment we have no content/item to remove in the Alfresco UI, however we have a ContentStore.deleted folder of 7 GB. This is taking space for the Backup in the hard disk that we will not use.

How can we get rid of these 7 GB's in the ContentStore.deleted? I know we can not just remove the content of the folder from alf_data

Thanks a lot in advance for your help
18 REPLIES 18

ivan_plestina
Champ in-the-making
Champ in-the-making
I set the schedule and set protectdays = 1; but its not working. I deleted file day before yesterday. by now it should have to move to ContetnDelete folder but it didn't neither it removed or move anywhere from contentstore folder..
Now please tell what to do?
Check "Manage deleted items" if it's there…

shamabbas
Champ in-the-making
Champ in-the-making
In alf_data there are following folders
audit.contentstore
contentstore
contentstore.deleted
lucene-indexes
oouser

But file is still in contentstore/2009/../ etc…

ivan_plestina
Champ in-the-making
Champ in-the-making
Open your user profile inside Alfresco Explorer and then go to Manage Deleted Items. Is it there?

shamabbas
Champ in-the-making
Champ in-the-making
Yes it is in Manage Delete Items.

ivan_plestina
Champ in-the-making
Champ in-the-making
Delete it from there (which will remove all references to it in database) and then wait for 1 day and it will show up in contentstore.deleted. If you want to skip that the file goes to Deleted Items then add sys:temporary aspect to it before you delete it.

shamabbas
Champ in-the-making
Champ in-the-making
I dont want to do it manually like this… Is there anyway or any configuration to do? Cz i have developed an API and i delete, upload and download by using my flex  Frontend Application through java web services.. I'm actually new so dont knw much

I'm grateful for your all replies and please if you know this please let me know?

Thanks once again

ivan_plestina
Champ in-the-making
Champ in-the-making
Use your API to add sys:temporary aspect to a document just before you delete it.

shamabbas
Champ in-the-making
Champ in-the-making
Hi ivan.plestina,

Sorry for little late reply I was on vacation.
Can you please tell me how to use sys:temporary cuz im totaly new in it.. plz?

Thanks for all previous replies and i hope ul help me out in this as well.

Thanks once again.

tc…
Shamabbas

shamabbas
Champ in-the-making
Champ in-the-making
Thankyou very much Ivan.

I understood i guess. I will try as you suggested

document.addAspect("sys:temporary");
document.delete();

and I hope it will work.

thanks once again.

shamabbas