- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Magento 2 remove all images which are not associated with any product.
I want to know Possible issues after removing images of deleted products from media/catalog/product folder
From what I understood Magento2 deleting product behavior, associated images of the deleted product are not removing from media/catalog/product folder.
need to manage around 11.000 new products in the database 4 seasons/year... after almost 1 year in production, I found 4,5gb of unused image
I don't really understand possible issues after deleting this images since products are no more in the database. How should I manage such disk usage increase in a Magento2 way?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2 remove all images which are not associated with any product.
@Patel_Chirag Magento, unfortunately, does not remove images of a product when the product gets removed.
Extensions
https://magecomp.com/magento-2-image-clean.html
http://shreejiinfosys.co.in/index.php/delete-unused-images-magento2.html
Cheers!
Magento Programmer | Was my answer helpful? You can accept it as a solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2 remove all images which are not associated with any product.
It is also possible to diagnose your store for unused products images and remove them at once using Store Manager (supports both M1 and M2, free version avail for such 1-time operations) -
https://blog.mag-manager.com/2013/05/how-to-quickly-detect-and-remove.html
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2 remove all images which are not associated with any product.
Thanks @GauravMehta04 my question is not only for how to remove unnecessary image but I want to know Possible issues after removing images of deleted products from media/catalog/product folder?
Is that any way to remove image programmically without using extension?