Forums / Developer / Delete images from images-versioned?
Nicklas Lundgren
Tuesday 16 January 2007 4:01:04 pm
Hi,
Trying to write a script to delete all content objects of a certain class from the system.This seem to work out fine, but I have one problem:
Images are automatically removed from var/.../storage/images. <b>But original images in var/.../storage/images-versioned dont seem to be removed at all!</b>
Any ideas on what I must do to have them deleted as well?
I am fetching all nodes to an $articleNodeArray and then deleting using a syntax like:
foreach($articleNodeArray as $node){ eZContentObjectTreeNode::removeSubtrees(array($node->attribute('main_node_id')), false); }
All feedback is welcome.
Best regards,/Nicklas
Nicklas Lundgren, Managing Director Novitell AB, Sweden