Delete images from disabled products
I am looking to free some space on my server
I have about 10000 products and the img folder is getting to big.
So I am trying to find a way to clean up automatically disabled products or at least the images of them.
Does anyone have a solution?
Why not delete the products if you want to clean up the images?
@dosbiner that would be the best solution. But it has to be automated
10k products, I think it can be done using manual approach.
- set auto disable product if stock = 0 using simple script
- on products catalog page sort only disabled products
- change the view products to 1000 (decrease if your hosting cannot handle displaying 1000 products)
- mark all products > delete
@dosbiner yes that is how I do it now. But products are added and disabled every day so I need to automatically do this
Ah I see, auto delete products. I think it can be done using module but can’t find one. Maybe someone have another thoughts
AndyC last edited by
Can you not use a media server under performance , or have I go t the wrong end of the stick for what this is used for