Forums / Developer / How to clean all the old objects versions

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to clean all the old objects versions

Author Message

Jean Gaudel

Thursday 07 December 2006 9:52:21 am

Hi,

My web site has more than 6000 objects and some of objects in the content subtree have more than 20 versions ! The size of the database increase dramaticly !

I'de like to know, if there's a script to delete all the old objects versions included image files.

Thx

kracker

Friday 08 December 2006 4:56:48 am

My first suggestion would be to checkout the 'flatten.php' script (requires php-cli to run) <i>bin/php/flatten.php</i>

If you do not have php-cli enabled in your php installation you can get it very quickly,
<i>http://ezpedia.org/wiki/en/ez/solution_building_php_cli_for_ez_publish_command_line_scripts
http://ezpedia.org/wiki/en/ez/solution_building_php_cli_php_4_4_4_for_ez_publish</i>

This solution, the combination of php-cli and the flatten.php script should meet your needs.

Any other suggestions from the community on this topic?

I have created a node in eZpedia on this subject, please feel free to add to it!
<i>http://ezpedia.org/wiki/en/ez/solution_how_to_clean_all_the_old_objects_versions</i>

Cheers,
//kracker

Member since: 2001.07.13 || http://ezpedia.se7enx.com/