Author Topic

Wenyue Yu

Thursday 05 February 2004 5:39:39 am

Comment39872

Hi,

Doing $node->remove() will only remove the content object from ezcontentobject_tree table. To completely remove this object, you need to do the following:
$objectID = $node->attribute( 'contentobject_id' );
$node->remove();
$object =& eZContentObject::fetch( $objectID );
$object->purge();

Regards,
wenyue