FANDOM


MultipleFileDelete is a script that adds a "Selective Delete" button to the following Special pages:

  • Allpages ("All pages")
  • Prefixindex ("All pages with prefix")
  • Listredirects ("Redirects list")
  • BrokenRedirects ("Broken redirects")
  • Unusedcategories ("Unused categories")
  • Unusedtemplates ("Unused templates")
  • Unusedimages ("Unused photos")
  • UnusedVideos ("Unused videos")
  • Deadendpages ("Dead-end pages")
  • Shortpages ("Short pages")

The script will load for these rights:

  • Content Moderator
  • Administrator (sysop) on the wiki
  • Content Volunteers
  • SOAP
  • Helpers
  • Content Team Members
  • Wiki Managers
  • Staff

How it works

Upon clicking the 'Selective Delete' button, two buttons will be displayed on the bottom left corner of the screen: 'Delete Selected' and 'Check All'. Checkboxes will also appear next to each listed item on the page. You can then select desired items to delete. You will be notified of each deletion result and the page will then reload.

Installation

Customization

If you wish to exclude one or more of the above pages, define the following variable before the import script statement:

window.mfdExclude = [
   'Allpages',
   'Prefixindex'
];

This will prevent the button from appearing on those pages. Make sure you are using the system-defined canonical page name (i.e. the initial name in the list, not the one in quotes) or else the script will not understand which page you are referring to.

Changelog

May 15, 2019
KhangND: Rewrite, major bug fixes and improvements.
Feb 19, 2015
Spottra: Initial release.
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+