Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:cleanupversions

Remove archived content versions beyond the VersionManagement limits (dry run unless --apply; -n: do not wait).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/cleanupversions.md

On this page

exp:cleanupversions

Remove archived content versions beyond the VersionManagement limits (dry run unless --apply; -n: do not wait).

Script bin/php/cleanupversions.php, code in kernel/private/classes/commands/cleanupversions.php. Run it from the installation root, as the user the web server runs as:

./console exp:cleanupversions --help
php bin/php/cleanupversions.php --help

Help text

Remove archived content object versions according to [VersionManagement]/DefaultVersionHistoryLimit and [VersionManagement]/VersionHistoryClass settings
Without --apply nothing is removed: the script lists per object how many archived versions it would
remove. --dry-run means the same as no flag; --apply together with --dry-run is a usage error (exit 2).

Example: ./bin/php/cleanupversions.php
         ./bin/php/cleanupversions.php --apply -n

Options

OptionValueHelp
--applyRemove the versions (the default is a dry run that lists them and removes nothing)
--dry-runThe default: list how many archived versions of each object would be removed
-nWith --apply: do not wait 10 seconds

Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).


Generated by ./console exp:help:examples from bin/php/cleanupversions.php, kernel/private/classes/commands/cleanupversions.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x