You can remove outdated packages from a profiled MODX deployment using the following command:
php teleport.phar --action=Packages/GC --profile=profile/mysite.profile.json
--profile=path
- A valid stream path to a Teleport Profile defining the MODX instance this action is to be performed against.
--preserveZip
- Prevents removal of the zip files for the outdated packages, removing only the extracted package directories and database records.