Solution: How to clean all the old objects versions

Question

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'd like to know, if there's a script to delete all the old objects versions included image files.

Solution

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

If you do not have php-cli enabled in your php installation you can get it very quickly by building from source or using existing binaries.

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?

References

From ez.no forums, How to clean all the old objects versions