AutoClean Images

AutoClean Images
AutoClean Images for OpenCart 4.x

Automatically delete product, category & manufacturer images when items are removed — no more orphaned files eating up your storage.

OpenCart deletes database entries.
It does not delete the actual image files.
The result? Thousands of dead files quietly breeding in your `/image/` directory like digital dust bunnies.

AutoClean Images fixes that.
The moment you delete a product, category, or manufacturer — their associated images are removed safely, instantly, and intelligently.

---

Key Features

Automatic Image Cleanup

When you delete:

* Products
* Categories
* Manufacturers

AutoClean Images removes their associated images from your server.

Safe Mode (Recommended)

Enable Safe Mode to prevent deleting images still used elsewhere.
The module performs cross-checks against:

* Product main images
* Additional product images
* Category images
* Manufacturer images

If an image is shared, it won’t be deleted until it’s truly unused.

Controller-based Events (OC4-Friendly)

No fragile model events.
No hacks.
Just proper controller-before & controller-after events fully compatible with OpenCart 4.1.x.

Deletes Images Anywhere

Works with:

* Subfolders
* Custom folders
* Mixed case filenames
* Spaces, symbols, unicode — you name it

Zero Core Modifications

* 100% native OCMOD
* No core edits
* Installs/uninstalls cleanly

Protects Essential Files

Auto-protects:

`cart.png`
`no_image.png`
`placeholder.png`
`profile.png`

---

Why This Module Is Worth Installing

OpenCart will happily leave:

* old test product images
* deleted category icons
* outdated brand logos
* abandoned additional images

…all sitting on your server forever.

This module cleans all that automatically.
Less clutter, cleaner backups, smoother long-term maintenance.

---

Compatibility

OpenCart 4.0.0.0 → 4.1.0.3
PHP 7.4+
Works with any theme
No VQMod required

---

Demo

Back End
https://opencart.ddac.uk/adminhere/index.php
Username: demo
Password: demo


-




Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
4.1.0.0, 4.1.0.1, 4.1.0.2, 4.1.0.3

Last Update
28 Nov 2025

Created
28 Nov 2025
42 Downloads
1 Comments
ddac.uk
ddac.uk
Member since: 18 Nov 2015

View all extensions Get Support