Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 EAV cleanup: remove orphaned attributes, options and values safely

Magento 2 Extension Admin Tool CLI Magento 2.4.x

SKU: EAVCLEANER1

  • Dry run first: a report on orphaned data without deleting anything
  • Protection list for system attributes, which are never offered
  • Backup file of the affected rows before every deletion
  • Admin and CLI, with a log of every run
Auf Lager
€99.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

Magento 2 extension for the admin and CLI

Magento 2 EAV cleanup: remove orphaned attributes, options and values safely

Anyone planning a Magento 2 EAV cleanup needs one thing above all: safety. This module finds orphaned attributes, unused options and values without a related entity and shows them to you first in a report only. Deletion happens only after a backup file and explicit confirmation.

After years of imports, module changes and range rebuilds, leftovers pile up in the catalog data model. They clutter the admin form, bloat tables and slow down imports and reindexing. The module works with dry run, a protection list for system attributes, batches and a log, in the admin and via CLI. We set it up in your shop.

6 features

Features for a Magento 2 EAV cleanup: the overview

Six building blocks that make tidying up controllable: look first, then back up, then confirm.

Scan and report

Lists orphaned attributes, unused options and unassigned values, with counts and examples.

Dry run

The default mode changes nothing, it just produces the report.

Protection list

System attributes and any attributes you protect are never offered for deletion.

Backup file

Before any deletion the affected rows are written to a file.

Confirmation and batches

Deletion only after explicit confirmation, in small batches.

Log

Every run traceable with time, admin user, scope and result.

01What is found

Magento 2 EAV cleanup: what the scan finds

The scan looks for attributes that no longer belong to any attribute set, attribute options no product uses, values in the catalog tables whose product or attribute no longer exists, and values for store views that are gone. Every finding appears in the report with a count and examples so you can judge whether it is really superfluous.

  • Attributes without an attribute set assignment
  • Unused options of select attributes
  • Values without a valid entity, attribute or store view
Admin · EAV Cleaner · Dry run
Report (example, nothing was deleted)
Attributes without setfinding
Unused optionsfinding
Values without productfinding
Stores › Configuration › EAV Cleaner
Backup directory
var/eav-cleaner/
Rows per batch
500
Protected attribute codes
color, brand_name
02Safety mechanisms

Safety mechanisms: several locks before a Magento 2 EAV cleanup deletes anything

System attributes sit on the protection list and are never offered; you can protect your own attributes as well. Before deleting, the module writes all affected rows to a backup file. Deletion happens only after you explicitly confirm, in batches your database can handle. Restoring from the backup file is possible via CLI.

  • Protection list for system and custom attributes
  • Backup file before every delete run
  • Restore from the backup file via CLI
03Admin and CLI

Admin and CLI: tidying in daily use and in the maintenance window

In the admin you see the report and start clean-up runs. For large data sets or maintenance windows there is a CLI command with the same checks. The log records who cleaned what and when. Important: test on a copy of your shop first. The module does not replace a database backup.

  • Report and start in the admin
  • CLI command for maintenance windows
  • Log with admin user and time
CLI · example
Invocation (example)
eav:clean --dry-runreport
eav:clean --confirmdelete + backup
Use cases

When you should run a Magento 2 EAV cleanup

Three situations in which a Magento 2 EAV cleanup measurably calms your catalog.

After a platform move

After a migration from Magento 1 or a shop relaunch, old attributes and options remain that mean nothing in the new shop. The scan shows you what is left over.

After removing modules

When a module is removed, its attributes often stay in the database. The report reveals these remains and lets you remove them selectively, as far as they are no longer needed.

Before imports and upgrades

A tidy catalog makes imports faster and errors easier to find. Before an upgrade, less legacy data reduces the number of possible surprises.

Comparison

Magento 2 EAV cleanup: manual SQL or with the module

The comparison shows why a Magento 2 EAV cleanup with a tool is safer than with self-written SQL.

AspectManual SQLWith the module
OverviewWrite and verify your own queriesReady report with counts and examples
Pre-checkUsually noneDry run as the default mode
System attributesAccidental deletion possibleProtection list, never offered
BackupHas to be thought of separatelyBackup file before every deletion
Load on the databaseLarge DELETEs at onceBatches of adjustable size
TraceabilityNoneLog with admin user and time
Process

How we set up the module for a Magento 2 EAV cleanup in your shop

Setup is done personally by Mironsoft. In a Magento 2 EAV cleanup care and safety come before speed.

1. Provide a copy

We start with a copy of your shop so that the first run has no consequences.

2. Installation

The module is set up, backup directory and batch size are defined.

3. Dry run and protection list

We go through the report together and enter attributes worth protecting.

4. Cleanup

Only then do we tidy the live shop, ideally in a maintenance window via CLI.

Delimitation

Magento 2 EAV cleanup compared with image cleanup and backups

The Mironsoft module Image Clean tidies up media files, specifically duplicate images on the file system. This module, in contrast, cleans entries in the catalog data model of the database. They complement each other without overlapping.

An honest classification matters to us: the module does not replace a full database backup. Create a backup before every deletion and test on a copy. The module's backup file covers only the deleted rows. No customer data is evaluated, only structural catalog data.

04How the purchase works

No download — personal setup instead

The module for a Magento 2 EAV cleanup is not listed here as a ready-made download file for self-installation. The purchase is a service commission: we get in touch after the purchase, set the module up, run a first dry run with you, and define the protection list before anything is deleted.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

Frequently asked questions about a Magento 2 EAV cleanup

Everything important about safety, procedure, and how the purchase of the extension works.

Can the module delete important data by accident?
The default mode deletes nothing. System attributes are protected, a backup file is written before every deletion and the action must be confirmed explicitly. Even so: create a full database backup first and test on a copy.
What counts as orphaned?
For example attributes without an attribute set, options without a product using them, or values whose product, attribute or store view no longer exists. The report shows every finding with examples.
Could attributes used by other modules be deleted?
The module can only recognise what is visible in the database. Attributes a module expects in code should go on the protection list. We review them with you during setup.
Does it work with very large catalogs?
Yes, processing runs in batches of adjustable size. For very large data sets the CLI run in a maintenance window is the right way.
Can I undo a deletion?
The backup file contains the deleted rows and can be re-imported via CLI, as long as the data model has not changed in the meantime.
How can I find orphaned attributes in Magento 2?
In a Magento 2 EAV cleanup with this module the scan starts as a dry run and lists attributes without an attribute set, unused options and values without an entity, with counts and examples.
How can I delete unused attribute options in Magento 2?
Select the found options in the report, confirm the action explicitly, and the module backs up the rows to a file before deletion.
Is the module only meant for Hyvä shops?
No. It works in the admin and in the CLI and is independent of the frontend theme. Your Hyvä frontend stays untouched.
Can I download and install the module myself?
No. This offer is not a download product. After the purchase we install and configure the module personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 EAV cleanup – Mironsoft EAV Cleaner
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 EAV cleanup – Mironsoft EAV Cleaner

Magento 2 EAV cleanup – Mironsoft EAV Cleaner

€99.00