PHPackages                             spydemon/m2-catalog\_product\_import\_media\_reset - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. spydemon/m2-catalog\_product\_import\_media\_reset

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

spydemon/m2-catalog\_product\_import\_media\_reset
==================================================

Add a new column in product import files that allows you to reset media content on imported products.

1.0.0(5y ago)02571[1 PRs](https://github.com/spydemon/m2-catalog_product_import_reset_media/pulls)MITPHP

Since Jul 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/spydemon/m2-catalog_product_import_reset_media)[ Packagist](https://packagist.org/packages/spydemon/m2-catalog_product_import_media_reset)[ Docs](https://github.com/spydemon/m2-catalog_product_reset_media)[ RSS](/packages/spydemon-m2-catalog-product-import-media-reset/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Magento 2 — Catalog Product Import Reset Media
==============================================

[](#magento-2--catalog-product-import-reset-media)

Aim of the module
-----------------

[](#aim-of-the-module)

Surprisingly, it seems that Magento 2 product import system doesn't handle media deletion. Indeed, if you import several times the same product with new images to assign on it, Magento will add the new ones to existing ones endlessly. All of them will show up on the front end, and your filesystem will be flooded by a lot of duplicate pictures.

This module adds a `reset_images` column in the CSV file to import that will erase all previous media assigned on the product if its value is `1`.

What you still have to do
-------------------------

[](#what-you-still-have-to-do)

Nothing. You just have to install the module and to put the new `reset_images` in your CSV file that contains products to import.

Warnings
--------

[](#warnings)

- This module has a huge negative impact on performance. On a test I did, the imported time increased by **33** between ones that resets images and ones that don't… This slowness happens because I use the `save` method on each imported product for handling the deletion. Issue #1 tracks the problem.
- The purpose of this module is more to help developers to save time instead of providing ready to use tools.

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

[](#compatibility)

This module was tested on the Magento versions that follows.

VersionState2.3.5-p1WorksHow to install it
-----------------

[](#how-to-install-it)

Using Composer for installing this module is the best way:

```
composer require spydemon/m2-catalog_product_import_reset_media

```

Help appreciated
----------------

[](#help-appreciated)

If you like this module and find a bug or an enhancement, don't hesitate to fill an issue, or even better: a pull request. 😀

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2121d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1022848?v=4)[Kevin Hagner](/maintainers/spydemon)[@spydemon](https://github.com/spydemon)

---

Top Contributors

[![spydemon](https://avatars.githubusercontent.com/u/1022848?v=4)](https://github.com/spydemon "spydemon (2 commits)")

### Embed Badge

![Health badge](/badges/spydemon-m2-catalog-product-import-media-reset/health.svg)

```
[![Health](https://phpackages.com/badges/spydemon-m2-catalog-product-import-media-reset/health.svg)](https://phpackages.com/packages/spydemon-m2-catalog-product-import-media-reset)
```

###  Alternatives

[rector/swiss-knife

Swiss knife in pocket of every upgrade architect

2001.9M55](/packages/rector-swiss-knife)[yireo/magento2-replace-inventory

51493.3k1](/packages/yireo-magento2-replace-inventory)[yireo/magento2-replace-bundled

Replace bundled third party packages from Magento

45335.0k1](/packages/yireo-magento2-replace-bundled)[typo3/cms-lowlevel

TYPO3 CMS Lowlevel - Technical analysis of the system. This includes raw database search, checking relations, counting pages and records etc.

177.6M206](/packages/typo3-cms-lowlevel)[yireo/magento2-replace-all

Remove various packages from Magento

1303.7k](/packages/yireo-magento2-replace-all)[divante-ltd/module-pimcore-integration

Magento-Pimcore bridge module.

348.3k](/packages/divante-ltd-module-pimcore-integration)

PHPackages © 2026

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