i'd prefer a solution using sigil preferences.
what would be helpful are 2 enhancements in future versions
1. an option to toggle off the confirm delete for "delete unused stylesheets" - so that a single hot key shortcut will do that operation
2. an option - within the pretty print/tidy options? - to delete unused classes before saving - which I think is a logical enhancement.
to clean all books in a folder would need some command line options ?