EAV Cleaner Console Command
magento-hackathon/module-eavcleaner-m2
Provides console commands to clean up EAV database inconsistencies. Fixes issues with "use default" values and removes unused attributes/media.
No errors foundPHPStan level 1Build passingSemVer compliant
- Supported Magento versions
- 2.4.9
- License
- MIT
- Categories
- Catalog Management
358,690 installs★ 80 stars10,652 downloads/monthLatest: v1.7.0Released 2025-08-05
composer require magento-hackathon/module-eavcleaner-m2README
Reproduced from the package’s own README, under its own license, as of 2026-10-31. Links and images point back at the source repository.
Purpose of this project is to check for different flaws that can occur due to EAV and provide cleanup functions.
Run bin/magento in the Magento 2 root and look for the eav: commands.
eav:config:restore-use-default-valueCheck if config admin value and storeview value are the same, so "use default" doesn't work anymore. Delete the storeview values.eav:attributes:restore-use-default-valueCheck if product attribute admin value and storeview value are the same, so "use default" doesn't work anymore. Delete the storeview values.eav:attributes:remove-unusedRemove attributes with no values set in products and attributes that are not present in any attribute sets.eav:media:remove-unusedRemove unused product images.eav:clean:attributes-and-values-without-parentRemove orphaned attribute values - those which are missing a parent entry (with the correspondingbackend_type) ineav_attribute.
Use --dry-run to check result without modifying data.
Use --force to skip the confirmation prompt before modifying data.
Installation with composer:
composer require magento-hackathon/module-eavcleaner-m2
- Nikita Zhavoronkova
- Anastasiia Sukhorukova
- Peter Jaap Blaakmeer
- Benno Lippert
- Damian Luszczymak
- Joke Puts
- Ralf Siepker
Links
- Packagist
- PackageMaven (source of the quality data)
- Repository
- Issues