Forum:Delete.py Special:UnusedFiles

Hi there, please excuse me my english, I need help in using my bot for sysop tasks, (again). I have a bot and I would like to know if is it possible (or maybe not) to use Special:UnusedFiles to retrieve all those unused files and make the bot to delete all of them. And from Special:UncategorizedFiles also. I was trying to delete using delete.py, but it only works with images in categories or linked from a given page, but not from special pages. Does anyone how to? Thank you so much for any help. Again thank you. -- Zeist Antilles  flimsiplast 18:17, May 12, 2011 (UTC)


 * I found the easiest way to do that for me is to first generate a log of the UnusedFiles by:
 * Then use the log (which will be in the "logs" directory) as a generator for the delete.py script, so:
 * Similarly the UncategorizedFiles can be retrieved with:
 * I bet there's a more intuitive way for doing that, but this works too.
 * Keep in mind that some images (wordmark, favicon etc.) will be listed as unused even if actually used
 * — Sovq 19:30, May 12, 2011 (UTC)
 * I bet there's a more intuitive way for doing that, but this works too.
 * Keep in mind that some images (wordmark, favicon etc.) will be listed as unused even if actually used
 * — Sovq 19:30, May 12, 2011 (UTC)


 * Thank you so much! If I understand it correctly I have to save this file in the logs directory, do I? -- Zeist Antilles  flimsiplast 19:57, May 12, 2011 (UTC)


 * If you add the " " parameter, the log will be created automatically in the "logs" directory. Afterwards you can move it to the main Python directory and use . — Sovq 20:20, May 12, 2011 (UTC)


 * It is working! Thank you so much! :) -- Zeist Antilles  flimsiplast 20:21, May 12, 2011 (UTC)


 * Tagging FAQ. -- Fandyllic (talk &middot; contr) 13 May 2011 5:34 PM Pacific