cancel
Showing results for 
Search instead for 
Did you mean: 

Java delete from contentstore?

ruighr
Champ in-the-making
Champ in-the-making
In java, I'm using the 'putcontent' method to replaced the content of a node.  Unfortunately, this is leaving an orphaned file in the content store (which is important because some of the files are large).  Is there an easy way to delete the original file from the content store before replacing it through the 'putcontent' method?

TIA

Bob
1 REPLY 1

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Orphaned content in the content store is automatically cleaned up by a scheduled job which runs periodically, however if a node is versionable then this previous content is not orphaned since it is the previous version's content.

So if want old content to be automatically cleaned out of the content store then make sure the node's in question do not have the versionable aspect applied, ie do not have a version history.

Cheers,
Roy