Forums / Developer / CLI sript - remove object - language
Martin Jerie
Thursday 26 August 2010 10:34:47 pm
Hi,
in my CLI sript i use function eZContentObjectTreeNode::removeSubtrees to remove object (file)
If object is in main language it works fine, but if object is created only in different language function does'nt remove it.
Thanks for your help,Martin
Nicolas Pastorino
Thursday 26 August 2010 11:15:42 pm
Hi Martin,
If you are removing one object only, you may want to consider the purge() method of the eZContentObject class.Check it here : http://github.com/ezsystems/ezpublish/blob/master/kernel/classes/ezcontentobject.php#L1704
Caution though : it *really* purges about anything related to the object :)
Cheers !
-- Nicolas Pastorino Director Community - eZ Member of the Community Project Board eZ Publish Community on twitter: http://twitter.com/ezcommunity t : http://twitter.com/jeanvoye G+ : http://plus.tl/jeanvoye
Jérôme Vieilledent
Friday 27 August 2010 8:23:38 am
Or you can install SQLIImport content framework : http://svn.projects.ez.no/sqliimport/trunk/stubs/contentremove.php ;-).
You will find the doc in the downloads section.
Enjoy !