cancel
Showing results for 
Search instead for 
Did you mean: 

Delete content from Archive space

lakshmi
Champ in-the-making
Champ in-the-making
Hi all,

I am trying to delete  content (that is of large size) from getting uploaded to alfresco by executing a rule. I have reached till the step of deleting the content & it moves to Archive space. But  I want the content to be completely purged.

I used,
this.nodeService.delete(actionedUponNodeRef);
if(this.nodeArchiveService.getArcivedNode(actionedUponNodeRef))
this.nodeArchiveService.purgeArchivedNode(actionedUponNodeRef);

but the last line doesnt execute at all, on uploading the webclient hangs at last line. My question is it possible to completely delete a node immediately after deleting it from webclient UI ie after this.nodeService.delete(actionedUponNodeRef)? Is it something to do with the protectDays property has to have a minimum of 1?

Is my approach possible with alfresco?

Thanks,
lakshmi
2 REPLIES 2

lakshmi
Champ in-the-making
Champ in-the-making
ANYONE?

luca
Star Contributor
Star Contributor
I'm working with Alfresco 3.0 Stable.

You can try to add temporary aspect to the node and then delete it, in this way alfresco don't archive the node before deleting it.