Thread:Project:Support desk/Delete unused images/reply (7)

I think this should do it. Here is something else you could try as a batch script. I have commented out one of the lines for testing. This script should be run from the command line for testing. Hopefully this will work for you.