Assuming your books are in epub format, you can use the
Modify ePub plugin, which has a feature to delete unused images.
For books in azw3 format, the
Editor Chains plugin provide a similar feature, and it can be run on multiple books if combined with the
Action Chains plugin.