Forum:Generate list of unused files

As of recently, my pywikipediabot is unable to generate a simple list of unused files, which pretty much prevents me from cleaning unused files up. I tried various methods of generating such a list, but failed every time. Does anyone know a way to list all of the unused files without too much hassle? — Sovq 06:10, July 10, 2012 (UTC)


 * I simply check them through Special:UnusedFiles and remove with Batch delete tool from dev.wikia. I think you may know this way but why don't you use it?


 * The way I understand that tool, it requires a list of pages to be deleted before it can start deleting - similarly to my bot. If on a wiki I have 1000+ unused images, going through Special:UnusedFiles and listing them all would take forever, that's why I require a quick way to compile such a list. Thank for your suggestion though, haven't used Batch Delete before - it's good to know there are alternative ways of mass-deleting stuff. — Sovq 10:16, July 10, 2012 (UTC)


 * If (and only if) your wiki has already been migrated to 1.19 you could request that list from the API and format it any which way you like:


 * /api.php?action=query&list=querypage&qppage=Unusedimages&qplimit=1000




 * I stumbled across this method in the official [MW API documentation] before, but couldn't make it work on my wiki. Thanks for making me realize it's because my wiki is still on 1.16.5. Waiting for the MW update seems to best course of action, I guess. Hopefully it won't take too long. — Sovq 11:56, July 10, 2012 (UTC)


 * The exact same thing happened to me. Funny how small and easy-to-miss the version number becomes, whenever you really should take a look at it :) --