Nice to hear from you.
First, oddly, all those 10's of thousands of unused image files do not show up when I go to Media and click "unattached". See the attached screen shot. There are only 26 unattached files, a tiny number compared with the many thousands of unused image files in my DB. Also, I don't use any gallery plugins, though I've downloaded one or two, I never activated them. (I should delete them). Lastly, have you read the comments users made about the dnui-delete-not-used-image-wordpress/ plugin? It's name should possibly be Do Not Use In perpetuum, instead of Delete Not Used Image. (trying to be funny). There are more negative remarks about it (17) than positive (15). And it hasn't been updated in 5 years. Sorry, Adam, but I don't need more time-consuming problems, but nice idea if it was any good. (you really shouldn't recommend using software that hasn't been updated in years, and has such bad feedback). :o)
As far as Page-Builder, I have used Page-Builder on 'maybe' 2 or 3 Wikis to try it out. Then I read about all kinds of problems related to using it, so I stopped. I do not believe it went into over a year of installed images, in over a dozen unique folders, and duplicated them. I can test this, but if it was generating so many possible sizes of images that are not in the same wikis, why do some images have 9 sizes, and others have over 20? If a given plugin was creating many different sizes of pics, it would seem logical that it would create the same sizes for every picture, much like WP documentation says it is creating 4 standard sizes for every imported picture (sml, med, lrg, and thumbnail).
So I just tested my theory about Wiki Pro creating this problem. Sorry, but it appears I'm correct. We made one Wiki titled Test For Image Duplication. Inserted some text and one picture. Did not touch, move, do anything to the picture. Saved it. Checked Cpanel, and in wp-content/uploads/2016/02 there were 9 copies of the picture in various sizes (WP documentation says it makes 5). Then made another new wiki, Test for Image Duplication 2. This time, that single picture was 'grabbed' by each corner and moved. WP Wiki Pro created 18, yes EIGHTEEN files. There is always 1 of the original picture, and the other 17 are copies in various sizes. Please see screenshots attached. We tested various actions and then deactivated every plugin except Wiki. By the time we got to Test 7, which was with every plugin turned off except WIKI (see attachment) WP was consistently making 18 files for every 1 (one) picture. So obviously a plugin I had installed was actually only "allowing" WP WIKI to make 9 instead of 18 IF we didn't move or resize it. Don't know which one it was, and it doesn't matter at this point because Wiki is making 18 files for every 1 picture I upload with every plugin turned off.
OK, so now I have figured it out. And I must mention, again, that turning off every plugin did nothing except cause me more time and work (I have to get that comment in - because I understand that some plugins DO cause problems like the one you mentioned for me to use). But I really DO read documentation, and user comments, and web comments, etc. . . before I install anything to my site.
So I have the problem of possibly 10s of thousands of picture files created by the WP Wiki software. They can't be removed by using WP software using the Media Library unattached files function. They can only be seen in the files on my host's server, as indicated and shown in screenshots.
So, I need the following:
1. Get the Wiki plugin to stop making multiple copies of every picture. Even 5 wasn't acceptable (and I have no clue why someone thought it was necessary), but it IS making 18 for every 1 picture (1 + 17).
2. I need a piece of software/code that will remove all extraneous files from my uploads folders on the server. This was caused by the wiki software. I have no 'tools' to find out which one is in use. And when I 'smushed' all the pics on the 9th of Feb, almost every picture now says it's latest modification date is 9 Feb, so mod date in Cpanel doesn't help. I have over 1400 Wikis. Most have many more than 1 or 2 pictures. Some wikis have dozens. Multiply that by 18 . . .
Info: I am using Windows 7. Windows 7 is up to date. Google Chrome Version 48.0.2564.109 m. Google Chrome is up to date. My WP is version
[attachment=1031222,85834] [attachment=1031222,85835] [attachment=1031222,85836] [attachment=1031222,85837] [attachment=1031222,85838]