Board Thread:Support Requests - Getting Technical/@comment-4105222-20140611034736/@comment-5558012-20140706143733

Adriano 25 wrote:

A user shared a link to this thread and that's how I got to know about it.

Is it possible to add a code on MediaWiki page that allows staff members to select images and delete it in one click with a similar reason of deleting it? The process of deleting one by one image is really very difficult.

I provided a link to this thread because one of my above posts answered your question about how to delete a large number of unused files easily if you read it. ListFiles is a personal or site-wide script while AjaxBatchDelete is a personal script. You can easily add them to your global.js. No MediaWiki code is even required as the code is already created. As for accidentally deleting important images, add the image to the file page (or make sure it's used on some article page) and the image won't appear in the list anymore.