Board Thread:Support Requests - Community Management/@comment-1376932-20130320001735/@comment-4674838-20130322033757

Hi, there are a couple of automation scripts you can actually use yourself to fairly easily delete unused images. You won't need to install or learn how to use a bot on your computer, you just need to copy/paste a bit of code and follow the simple steps below. Here is a description of a workflow you can use to delete unused images on your wiki:

Setup

 * 1) First, you must be an admin on your wiki, otherwise you won't be able to delete files. Already an admin? Great!
 * 2) Install the w:c:dev:ListFiles script.
 * 3) Install the w:c:dev:AjaxBatchDelete script.

Note: instructions for how to use and install these scripts are on those help pages linked. But in case you find any of that confusing, just copy/paste the following code into Special:MyPage/global.js -- that will install both of these scripts for you in your global.js where it will work on all wikis: importArticles({   type: 'script',    articles: [        'u:dev:ListFiles/code.js',        'u:dev:AjaxBatchDelete/code.js'    ] });

Usage

 * 1) Go to the Special:UnusedFiles on your wiki.
 * 2) You will notice that the ListFiles script provides a raw text list of the files currently on that page. Highlight that list of pages and copy it (right-click -> copy or CTRL + C)
 * 3) In your toolbar at the bottom of the screen, in the My Tools menu, you'll see a link called Batch Delete. Click it.
 * 4) Once there, you'll see an empty textarea field. Paste (right-click -> paste or CTRL + V) the list of files that you copied earlier into that text field.
 * 5) Type in a delete reason, then click the Start button to begin deleting that list of pages.
 * 6) It will take some time to complete, but the batch delete script will automatically delete all pages in that list one-by-one. Just leave your web browser open and wait for it to finish.
 * 7) Done? Repeat these steps as often as you like to continue deleting unused files.