exp:ezsubtreeremove
Remove content subtrees by node ID, to the trash unless --ignore-trash is given (dry run unless --apply).
Script bin/php/ezsubtreeremove.php, code in kernel/private/classes/commands/ezsubtreeremove.php. Run it from the installation root, as the user the web server runs as:
./console exp:ezsubtreeremove --help
php bin/php/ezsubtreeremove.php --helpOptions
| Option | Value | Help |
|---|---|---|
--apply | Remove the subtrees (the default is a dry run that lists them and removes nothing) | |
--dry-run | The default: list what would be removed, change nothing | |
--nodes-id | required | Subtree nodes ID (separated by comma ','). |
--ignore-trash | Ignore trash ('move to trash' by default). |
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 ...).
Related
Generated by ./console exp:help:examples from bin/php/ezsubtreeremove.php, kernel/private/classes/commands/ezsubtreeremove.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.