PHPackages                             fballiano/openmage-autodelete-product-images - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. fballiano/openmage-autodelete-product-images

ActiveMagento-module

fballiano/openmage-autodelete-product-images
============================================

Delete images files from filesystem when an image is removed from the product or the product is deleted.

0.4.0(2y ago)1374OSL-3.0PHPPHP &gt;=7.4.0

Since Sep 9Pushed 1y ago4 watchersCompare

[ Source](https://github.com/fballiano/openmage-autodelete-product-images)[ Packagist](https://packagist.org/packages/fballiano/openmage-autodelete-product-images)[ Docs](https://github.com/fballiano/openmage-autodelete-product-images)[ Fund](https://www.buymeacoffee.com/fballiano)[ Fund](https://paypal.me/fabrizioballiano)[ RSS](/packages/fballiano-openmage-autodelete-product-images/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

OpenMage Autodelete Product Images
==================================

[](#openmage-autodelete-product-images)

When you remove an image from a product the file itself it's not deleted from the filesystem. Also when you delete a product using Magento backend all the images are not deleted from the filesystem.

This module checks every modification to a product (upon saving and delete), understands what media files have been removed and deletes them from the filesystem.

**If you find my work valuable, please consider sponsoring**
[![Sponsor me on GitHub](https://camo.githubusercontent.com/3f9a3c47d5a6c575b4d6c5f13ecaf55ff585c67a6ba47f87f8cf57e4cb7a1fdc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73706f6e736f722d3330333633443f7374796c653d666f722d7468652d6261646765266c6f676f3d4769744875622d53706f6e736f7273266c6f676f436f6c6f723d237768697465)](https://github.com/sponsors/fballiano "Sponsor me on GitHub")[![Buy me a coffee](https://camo.githubusercontent.com/430a7d4ff7294cc857ec60d5ea9f51241205a91cab8387143d33b4bd13e27912/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275795f4d655f415f436f666665652d4646444430303f7374796c653d666f722d7468652d6261646765266c6f676f3d6275792d6d652d612d636f66666565266c6f676f436f6c6f723d626c61636b)](https://www.buymeacoffee.com/fballiano "Buy me a coffee")[![Donate via PayPal](https://camo.githubusercontent.com/b811c9741e973ac713b2a33c9bfd025f0fad57a7b1d57a29d03b30badb6d04f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50617950616c2d3030343537433f7374796c653d666f722d7468652d6261646765266c6f676f3d70617970616c266c6f676f436f6c6f723d7768697465)](https://www.paypal.com/paypalme/fabrizioballiano "Donate via PayPal")Limitations
-----------

[](#limitations)

This module is not tested (and not made for that case) against "media" saved on database.

Backup!!!
---------

[](#backup)

Backup everything while using this module!!! This module is provided "as is" and I'll not be responsible for any data damage.

Installation
------------

[](#installation)

With composer:

```
composer require fballiano/openmage-autodelete-product-images
```

With modman:

```
modman clone https://github.com/fballiano/openmage-autodelete-product-images
```

Compatibility
-------------

[](#compatibility)

OpenMage v19, OpenMage v20, Magento 1.9+

Support
-------

[](#support)

If you have any issues with this extension, open an issue on GitHub.

Contribution
------------

[](#contribution)

Any contributions are highly appreciated. The best way to contribute code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).

Developer
---------

[](#developer)

Fabrizio Balliano

[@fballiano](https://twitter.com/fballiano)

Licence
-------

[](#licence)

[OSL - Open Software Licence 3.0](http://opensource.org/licenses/osl-3.0.php)

Copyright
---------

[](#copyright)

(c) Fabrizio Balliano

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1176 days

Total

4

Last Release

735d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.3.0

0.2.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/262e16fb4a6bbef60ac0fd0172f5586e2c24effcc80a2138e662fb0316083c4c?d=identicon)[fballiano](/maintainers/fballiano)

---

Top Contributors

[![fballiano](https://avatars.githubusercontent.com/u/909743?v=4)](https://github.com/fballiano "fballiano (19 commits)")[![winkelsdorf](https://avatars.githubusercontent.com/u/1413291?v=4)](https://github.com/winkelsdorf "winkelsdorf (1 commits)")

### Embed Badge

![Health badge](/badges/fballiano-openmage-autodelete-product-images/health.svg)

```
[![Health](https://phpackages.com/badges/fballiano-openmage-autodelete-product-images/health.svg)](https://phpackages.com/packages/fballiano-openmage-autodelete-product-images)
```

###  Alternatives

[algolia/algoliasearch-magento

Algolia Search for Magento

16648.8k](/packages/algolia-algoliasearch-magento)[inviqa/magento-symfony-container

Provides Magento with an instance of a Symfony DI Container

2436.5k](/packages/inviqa-magento-symfony-container)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
