Help:Extension:Nuke

The extension Nuke is useful to mass-delete unwanted pages (spam, vandalism…). Before deletion, pages can be filtered by editor, title, and/or namespace, and individual pages are listed by actual deletion.

Note that, on the contrary to the “rollback” operation (also called “revert”), Nuke deletes entire pages with their history.

If you want to delete individual contributions but keep the pages, you have to use the “rollback” feature (by default granted to help-sysop-and-permissions>Help:Sysops and permissions|administrators (sysops)).

See the extension-nuke>Extension:Nuke|main page of the extension for help about installation and configuration.

Usage
Go to the page Special:Nuke or search  in the list of help-special-pages>Help:Special pages|special pages.

You must have the right  (granted to help-sysop-and-permissions>Help:Sysops and permissions|administrators (sysops) by default, see help-user-rights-and-groups>Help:User rights and groups|User rights and groups).

Also, there is a link “” on the top of the page listing the contributions of a user or IP address (Special:Contributions).



On the first screen, before deleting pages, you have to select the pages according to certain criteria:
 * User name or IP address;
 * Page name, or pattern of page names (see below for the syntax);
 * A specific namespace or all namespaces

You can enter one or multiple criteria. If you enter multiple criteria, pages matching all the criteria will be selected. If you enter no criteria, all recent pages will be selected.



After clicking on “”, you get a second screen where the selection is displayed and you can select or unselect individual pages. You can modify the reason displayed in the logs, and then click on “”.

A confirmation of the actual deletions is then displayed. All deletions are logged in the general deletion log Special:Log/delete.

Pattern of page names
Wildcards can be used in the field “”, specifically SQL LIKE wildcards:
 * _</> (underscore) means exactly one character;
 * <tvar|percent>%</> (percent sign) means zero or any number of characters.

Page names must be written in the database-encoded form, corresponding to the page name in the URL (where underscore are used for spaces, and a capital letter is used as first letter if the namespace is case-insensitive).

Three characters must be encoded specifically:
 * the space “<tvar|space> </>” must be encoded as <tvar|space-encoded>\_</> (because an underscore alone is the wildcard “one character”)
 * the percent sign “<tvar|percent>%</>” must be encoded as <tvar|percent-encoded>\%</>
 * the backslash sign “<tvar|backslash>\</>” must be encoded as <tvar|backslash-encoded>\\</>

Does Nuke free disk space?
No. The pages are deleted like the classical operation “delete” in MediaWiki: they are removed from public view, but administrators car still view them and restore them. Other extensions like extension-deletepagesforgood>Extension:DeletePagesForGood</>|DeletePagesForGood can permanently delete pages.

Can I mass-delete pages according to a manual list?
Currently no. There is another extension, extension-deletebatch>Extension:DeleteBatch</>|DeleteBatch, which have this feature. The task <tvar|phab>T68447</> was opened to request this feature in Nuke.

Why some pages meeting the criteria are not listed?
The search is restricted to recent modifications, where “recent” is given by the configuration parameter <tvar|1> </> (by default 90 days). The task <tvar|phab>T33858</> requests the feature of searching in all pages, not only recent pages.