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

List the notification events, or remove the old ones (dry run unless --apply).

Download as PDF

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

On this page

exp:notificationevents

List the notification events, or remove the old ones (dry run unless --apply).

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

./console exp:notificationevents --help
./console exp:notification:events --help
./console exp:notify:events --help
php bin/php/notificationevents.php --help

Help text

Notification events
  list                      the newest events: id, status, type, age, messages waiting
  cleanup                   remove the handled events nothing waits for, and with --older-than the
                            events (and their messages) older than that

An event has no date of its own; its age is read from what it is about (the published version, the
collaboration item, the time of a time event). Events whose age cannot be told, because the content
is gone, are listed as unknown and removed only with --include-unknown.
cleanup without --apply removes nothing: it counts what it would remove. --dry-run is still
accepted and means the same as no flag; --apply together with --dry-run is a usage error (exit 2).

./console exp:notification:events list --status=pending --limit=20
./console exp:notification:events cleanup --older-than=30d
./console exp:notification:events cleanup --older-than=30d --apply

Options

OptionValueHelp
--statusrequiredlist, cleanup --older-than: pending or handled (default both)
--limitrequiredlist: how many (default 50)
--older-thanrequiredcleanup: 90s, 15m, 12h, 30d, 2w or a date (2026-09-01)
--include-unknowncleanup: also remove events whose age cannot be told
--applycleanup: remove the events (the default counts them and removes nothing)
--dry-runcleanup: the default, kept for scripts that pass it: count, remove nothing
--jsonlist: JSON

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