This occurred to me.
Run a regular expression search for img tags which will include the filename
in what is found. (Do that in whole project.)
Save the results as a text file.
Trim the text file down to file names only. (Sort it)
Print it.
Work through it deleting files as you go