Remove non-used images

By Toledoh - February 3, 2016

Hi Guys.

I've got a few websites that have a huge amount of uploaded images... real-estate sites mainly. For instance, one client runs auctions.  They upload a few thousand images for each auction, then delete the record once the auction is complete.  but this leaves the thousands of images on the server, and no easy way to remove them.

Is there a plugin that could somehow search the cmsb/uploads folder and see if there are any records that use each image - and if not, delete them?  

Cheers,

Tim (toledoh.com.au)

By Toledoh - February 3, 2016

Hey Damon - I didn't realise that!

I just checked and the reason the images are not being deleted is that they are actually separate records from a related table.  I've just advised the client that if they delete those records, the images will be removed.  Thanks!

Cheers,

Tim (toledoh.com.au)