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:trashpurge

Permanently delete all objects in the trash (dry run unless --apply).

Download as PDF

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

On this page

exp:trashpurge

Permanently delete all objects in the trash (dry run unless --apply).

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

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

Help text

Empty Exponential trash.
Permanently deletes all objects in the trash.
Without --apply nothing is deleted: the script counts and lists what it would purge. --dry-run
means the same as no flag; --apply together with --dry-run is a usage error (exit 2). The cronjob
part trashpurge purges as before.

./bin/php/trashpurge.php
./bin/php/trashpurge.php --apply

Options

OptionValueHelp
--applyPurge the objects (the default is a dry run that lists them and deletes nothing)
--dry-runThe default: count and list what would be purged, change nothing
--iteration-sleeprequiredAmount of seconds to sleep between each iteration when performing a purge operation, can be a float. Default is one second.
--iteration-limitrequiredAmount of items to remove in each iteration when performing a purge operation. Default is 100.
--memory-monitoringIf set, memory usage will be logged in var/log/trashpurge.log.
--trashed-daysrequiredIf set, only objects that has been trashed for at least the specified amount of days will be purged.

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/trashpurge.php, kernel/private/classes/commands/trashpurge.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