📊 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
Popular Module Stable v1.7.0

Magento 2 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.

278,057
Downloads
Above average
79
GitHub Stars
2x above avg
6mo ago
Last Release
7
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

Coding Standard
L1 PHPStan

Tested on Magento 2.4.8-p3

Recent Test History

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

v1.7.0 on Magento 2.4.8-p3
Dec 29, 2025

Share This Module's Status

Magento 2 EAV Cleaner Console Command Magento compatibility status badge

README

Loaded from GitHub

Magento 2 EAV Cleaner Console Command

Purpose of this project is to check for different flaws that can occur due to EAV and provide cleanup functions.

Usage

Run bin/magento in the Magento 2 root and look for the eav: commands.

Commands

  • eav:config:restore-use-default-value Check 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-value Check 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-unused Remove attributes with no values set in products and attributes that are not present in any attribute sets.
  • eav:media:remove-unused Remove unused product images.
  • eav:clean:attributes-and-values-without-parent Remove orphaned attribute values - those which are missing a parent entry (with the corresponding backend_type) in eav_attribute.

Dry run

Use --dry-run to check result without modifying data.

Force

Use --force to skip the confirmation prompt before modifying data.

Installation

Installation with composer:

composer require magento-hackathon/module-eavcleaner-m2

Contributors

  • Nikita Zhavoronkova
  • Anastasiia Sukhorukova
  • Peter Jaap Blaakmeer

Special thanks to

  • Benno Lippert
  • Damian Luszczymak
  • Joke Puts
  • Ralf Siepker

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.