I know this is an old topic, but it has not been answered. I created a workflow for approving content before published. After that I needed to delete some of the already approved and published objects, but thay are still listed in Collaboration - Item list.
Indeed, using the cleanup.php script with the collaboration option will simply truncate the associated tables. The executed code is eventually this one :
$db = eZDB::instance();
$db->begin();
$db->query( "DELETE FROM ezcollab_item" );
$db->query( "DELETE FROM ezcollab_item_group_link" );
$db->query( "DELETE FROM ezcollab_item_message_link" );
$db->query( "DELETE FROM ezcollab_item_participant_link" );
$db->query( "DELETE FROM ezcollab_item_status" );
$db->query( "DELETE FROM ezcollab_notification_rule" );
$db->query( "DELETE FROM ezcollab_profile" );
$db->query( "DELETE FROM ezcollab_simple_message" );
$db->commit();
and i could not find any related option to only clean-up archived items. But what are you exactly trying to achieve, at a functional level ?
Let us know, Cheers,
--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board
Thanks for your feedback. I'm working on the following - I would like to have my users approved by administrator, before getting created. To achieve that, I set 2 workflows, the first one with event/approve, the second one with event/Multiplexer with classes to run 'User'.
My site is currently in development, so I didn't set cronjobs, but perform this manualy. All this works, as I expected. My issue came when I decided to delete the fake users that had been used for testing only. I deleted them, but they still appear in Item list, under Collaboration section. Do you know if there is a way to remove only deleted users from there.
Thanks.
You must be logged in to post messages in this topic!