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

Trim RSS-imported content, keeping the newest items of each active import (dry run unless --apply).

Download as PDF

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

On this page

exp:cleanuprss

Trim RSS-imported content, keeping the newest items of each active import (dry run unless --apply).

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

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

Help text

Exponential RSS Import Cleanup
Keeps the newest items of each active RSS import and removes the rest.

Configured in content.ini [RSSImportCleanupSettings]; it removes nothing
until that names the classes it is allowed to remove.
Without --apply nothing is removed: the script lists the items 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). The cronjob part cleanuprss removes as before.

./bin/php/cleanuprss.php
./bin/php/cleanuprss.php --apply

Options

OptionValueHelp
--applyRemove the items (the default is a dry run that lists them and removes nothing)
--dry-runThe default, kept for scripts that pass it: list what would be removed, remove nothing
--keeprequiredKeep this many items per feed instead of the configured number

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