Forums / General / Mass deleting Previous versions

Mass deleting Previous versions

Author Message

Andy Boston

Thursday 10 January 2008 6:41:02 am

During an initial set up process there's a lot of tweaks and changes that take place.

Is there a quick way to mass delete the previous versions?

Is it possible by FTP or is there an admin tool that does the job??

Please let me know 8-)

André R.

Thursday 10 January 2008 7:22:25 am

bin/php/flatten.php

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Sebastian Gęsior

Tuesday 12 August 2008 5:54:06 am

Well, it seems to be very simple, but when i call this script - nothing changes. I mean there is some message:

php bin/php/flatten.php all
Removing non-published content object versions
Removing temporary content classes
Removing temporary workflows
Removing temporary roles

but there is no change in database (I checked it on three installations, each on different machine).
I work with eZ 4.0.
Any suggestions? Thank you.

By the way - hello everyone, I'm new here :-)

Sebastiaan van der Vliet

Tuesday 12 August 2008 8:56:35 am

http://ez.no/developer/contribs/hacks/remove_objects

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Sebastian Gęsior

Tuesday 12 August 2008 4:32:18 pm

Thank you, but I only want to delete the archived versions of my content - any other idea how to make the "flatten.php" work properly?

eZ debug

Timing: Jan 31 2025 06:01:19
Script start
Timing: Jan 31 2025 06:01:19
Module start 'content'
Timing: Jan 31 2025 06:01:19
Module end 'content'
Timing: Jan 31 2025 06:01:19
Script end

Main resources:

Total runtime0.0934 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0096 587.9219180.8438
Module start 'content' 0.00960.0589 768.765697.8359
Module end 'content' 0.06850.0247 866.601674.7031
Script end 0.0933  941.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00303.2199120.0003
Check MTime0.00141.5161120.0001
Mysql Total
Database connection0.00060.684310.0006
Mysqli_queries0.00525.528040.0013
Looping result0.00000.032920.0000
Template Total0.024225.910.0242
Template load0.00111.169410.0011
Template processing0.023124.764610.0231
Override
Cache load0.00060.686310.0006
General
dbfile0.029031.0519100.0029
String conversion0.00000.009230.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs