If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Anyone know of a script to delete unused images form the site?

Anyone know of a script to delete unused images form the site?

Started by infocom on 14 Apr 2011, 3:46 PM · Views: 1,619

Results 1 to 3 of 3
14 Apr 2011, 3:46 PM
#1
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Anyone know of a script to delete unused images form the site?

Anyone know of a script to delete unused images form the site?

Over time I have quite a few sites that have had products deleted in Admin, but as you know this for some reason does not delete the images. So I have loads and loads of unused product images on many of my sites taking up valuable server space.

Anyone know of a script to scour the database for images (categories, products, ezpages) and then show a summary of images on the server not in the database, then provide the option to delete these images? Would be good to extend to define_pages too.

Such a script would be great.

Thanks

15 Apr 2011, 12:19 AM
#3
ebusinessman avatar

ebusinessman

Zen Follower

Join Date:
Jul 2006
Posts:
132
Plugin Contributions:
0

Re: Anyone know of a script to delete unused images form the site?

you are welcome :-)

I did this a lot when I firstly use zc