I am facing a website wich media directory size is 88 GB, and that is getting problems with the server and some processes. After analyzing the product date, I determined that in this directory exists so many images that are not assigned to any product in the database. Is there any way to get all those images not linked to a product and delete them?

2 Answers 2


I am using Hackathon EAV cleaner module for remove unused images. After installation you can use the command eav:media:remove-unused

this is a module https://github.com/magento-hackathon/EAVCleaner/tree/magento2


use Magento Store Manager free trial,it has store diagnostics that finds that images and allows to delete them

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.