AnsweredAssumed Answered

Delete content from Archive space

Question asked by lakshmi on Jul 18, 2008
Latest reply on Apr 8, 2009 by luca
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

Outcomes