@schteev...
Did you ever find a convenient way to delete all the unattached images?
There seems to be a big need for an all in one "cleanup" plugin that does something like this:
- remove all unattached images after verifying that they are not used somewhere on the site
- delete the actual image files from the uploads folder that are not linked to from any post
- do this unattended in the background
While we are at it, we might as well have an option to delete all trash and any items from the list below that is not being used by a published, pending or draft post or page:
- taxonomy terms
- attachments
- user_meta
- post_meta
- comments
- any other dead weight from both the database and filesystem.
Call it "spring cleaning" :-) I see the wp-cleanup plugin, which is a good start, but I don't think it does anything with images.
I personally have a need for this because I'm working on an import program that gets all my data and images from a couple of existing sites and maps it all and inserts new posts and taxonomy terms on one new site. I just spent the whole day deleting all the imported stuff because of a design change to the new site. But I could not just do a reinstall since there is a significant amount of data on the new site I wanted to keep. Hmmm ... maybe that will be my first plugin.