Removing unreferenced images using Powershell

If a website is changing constantly then it’s quite likely you’ll end up with a load of images in a folder somewhere which you’re not sure if they’re being used anywhere or not.

They may be in html files or used in css or even in js; how to know if they’re ok to delete?

Here’s what I’ve used recently to tidy up a young, but already messy, project:

Leave a Reply

Your email address will not be published. Required fields are marked *