Attribute Cleaner
Remove the attributes your Magento store no longer uses without breaking anything.
Check it fits your store
Questions about compatibility? Contact us.
Details
Attribute Cleaner is a Magento 2 extension that finds and removes unused product, category, customer and customer address attributes. Clear attributes that no longer serve your store but still clutter attribute sets, filters, import templates and product forms.
How Attribute Cleaner identifies unused attributes
Only user-defined attributes qualify for deletion. System attributes such as name, price, SKU, status and image roles never appear as deletion candidates. The extension keeps an attribute when:
- A record holds a value for it.
- An installed extension or custom theme creates, reads or displays it. Checks cover code, templates, XML, UI components and model classes, including Hyvä themes.
- Magento created it, unless you enable deletion of Magento-created attributes.
- A configurable product uses it as an option.
- A catalog or cart price rule, widget, CMS page or block, Page Builder template, or category or product content names it.
- A setting selects it, your Never Delete list includes it, or a custom table holds its values.
Each kept attribute shows its reason, so you can review why the extension excludes it from cleanup.
Review leftover values and missing model classes
The extension separately lists attributes with values on products or categories outside their attribute set. You can delete these attributes, and the backup retains their leftover values.
It also flags attributes whose model class no longer exists, which can point to a removed extension.
Delete attributes and restore backups
- Open Stores › Attributes › Unused Attributes to review the results.
- Select the attributes to delete. The extension checks each one again before deletion and saves a JSON backup in var/ before the first deletion.
- Use the Backups list when you need to restore deleted attributes.
Restoration includes attribute IDs, labels, options and swatches, attribute set and group assignments, customer form settings and leftover values.
Take a database backup before large cleanups, as recommended for any bulk change.
Admin settings and command-line tools
Configure the Never Delete list and permission to delete Magento-created attributes in the extension settings under Stores › Configuration › Techimprovement.
- Run command-line scans with reasons, clean with a dry run, and restore backups.
- Control viewing, deleting and restoring through separate ACL resources.
- Refresh cached file checks with Check Files Again or a cache flush.
Requirements and included download
- Magento Open Source / Adobe Commerce 2.4.9.
- PHP 8.3–8.5.
- Edition options: Community, Enterprise and Magento Cloud.
- Included digital download: Version 1.0.1.
The extension runs only in the Admin and command line and adds nothing to the storefront. It works independently of your storefront theme, including Luma, Luma-based and Hyvä themes.
Change Log
Version 1.0.1 – October 30, 2026
Other changes
- Fixed: the *Attribute sets* and *Records with a value* column headings were left-aligned above right-aligned numbers; they are right-aligned now.
- Documentation: Attribute Cleaner is theme-independent and works with Luma, Luma-based and Hyvä storefronts (it works in the Admin and the command line only and adds nothing to the storefront). Hyvä themes are read like other custom themes, so attributes their templates use are kept.
Earlier versions (1)
Version 1.0.0
Other changes
- New module: Stores › Attributes › Unused Attributes lists product, category, customer and customer address attributes that hold no data and that nothing uses, and deletes the selected ones.
- Protected: system attributes; attributes with values; attributes installed extensions or custom themes create, read or show; attributes Magento creates (optional); configurable product options; attributes in price rules, widgets, CMS and Page Builder content, product and category content and settings; a keep list.
- Leftover values (values on products whose attribute set no longer contains the attribute) are recognised and kept in the backup.
- Every deletion saves a backup; restore from the Admin page or the command line.
- Commands techimprovement:attributes:scan, techimprovement:attributes:clean and techimprovement:attributes:restore.
Reviews
Be the first to review Attribute Cleaner
Reviews are written by customers with an account. Sign in to tell others how it works on your store.

