📊 State of Magento 2025

The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

613 Modules
401 Ready
211 Need Help
🏆 Leaderboard
Potentially Abandoned v1.0.4

Phoenix Media Cleanup

phoenix-media/magento2-cleanup

Archives and removes old entities like logs, unused product images, and old quotes. It uses configurable cleanup rules and can be extended with custom handlers.

21,207
Downloads
Below average
7
GitHub Stars
Below average
3y ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
4 errors , 149 warnings
PHPStan Failed

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.4 on Magento 2.4.8-p3
Dec 28, 2025

Share This Module's Status

Phoenix Media Cleanup Magento compatibility status badge

README

Loaded from GitHub

Phoenix Media Cleanup

The module archives and removes old entities. It supports log files, product images and quotes.

What it does

For files it basically replaces logrotate. It archives and compresses log files and cleans up the archive folder after a configurable period. For product images it finds unreferenced files in media/catalog/product and moves them to a recycle bin which gets purged after a configurable period. For quotes it simply removes customer and guest quotes after a configurable period.

How it works

The module provides a cron job and a shell command to execute the cleanup jobs. Those jobs are implemented as "handlers" which clean up a specific entity. The set of bundled handlers can be easily extended by custom handlers via di.xml. A resolver will then expose configured handlers to the cron job and the shell command which then can execute the cleanup without additional configuration.

New handlers need to implement the HandlerInterface and be registerdto the handlerPool using di.xml.

How to use

  1. Install the module via Composer:
composer require phoenix-media/magento2-cleanup
  1. Enable it bin/magento module:enable Phoenix_Cleanup
  2. Install the module and rebuild the DI cache bin/magento setup:upgrade

How to configure

Find the modules configuration in the PHOENIX MEDIA section of your Magento configuration.

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.