Extension talk:Nuke

Jump to navigation Jump to search

About this board

previous talk on this page

DaveLeach (talkcontribs)

How do you USE "Nuke"? What do you enter in the fields "Username, IP address or blank" <> "Pattern for the page name" <> "Limit to namespace" <> "maximum number of pages"?

All I find in any explanations anywhere are a list of the fields, as if the names of the fields alone are enough information to inform stupid people like me what to put in them! I tried a few wild guesses but nothing happened.

On the other hand, in some instructions I find code you are supposed to enter somewhere, but they never say where. Am I supposed to enter it in a php file? Am I supposed to try it in some command line somewhere - I saw an article about command lines but couldn't figure out how to get there or how to use it. I tried putting some of those codes in the above fields, but nothing happened.

Is there a help place somewhere more focused on explaining ALL the steps one must take?

Reply to "What do you put in the fields?"
Michael Chidester (talkcontribs)

I have a private wiki and I need to delete every page created by a certain bot. This is on the order of 10^5 pages created over the past five years, only a few thousand of which are edited by the bot in a given month. Is there a way to extend the Nuke threshold to include an arbitrarily long time period like this?

~ Michael Chidester (Contact) 20:55, 29 November 2018 (UTC)

Treebytron (talkcontribs)

same question here... We have tons of spam pages but none of them are showing up, would be helpful to be able to specify dates or search all dates... thanks!

Reply to "How is "recent" defined?"
Johnywhy (talkcontribs)

I don't see steps to delete multiple pages simply by listing their full page-names.

Just use commas?

Portal:MyPage, Template:MyTemplate, Gorillas
Moscowdreams (talkcontribs)

I think you need one of the other extensions listed on the main page, like batch delete

Reply to "Mass Delete by List?"

Why Showing Pages Already Deleted?

Johnywhy (talkcontribs)

When i search a namespace without a search-pattern, i get pages that were already deleted.


Any fix?


Moscowdreams (talkcontribs)

good point. interested why this is also.

Reply to "Why Showing Pages Already Deleted?"

Issues with spaces in page name pattern

Jer Hughes (talkcontribs)

I'm trying to list all the pages that have a certain pattern to them, my specific case is two words separated by an x, like Blue x widget. With everything else left blank, I search for % x % with zero results found. If I remove the spaces (%x%) I get every article with an x in it, including articles like Blue x widget. Do I need to escape or use a special symbol if I'm trying to match a pattern?

Reply to "Issues with spaces in page name pattern"

Can I delete all pages, associated with a specific Category?

1 (talkcontribs)

I have a large number of pages, which are all "flagged" via an own Category. Can I use Nuke (i.e. FileName pattern Category:GoAway) to delete all associated pages?

Reply to "Can I delete all pages, associated with a specific Category?"

Nuke not working for renamed files

Green Giant (talkcontribs)

A bureaucrat (@Pi zero:) on EN:WN tried to nuke all the uploads by one user ([[:n:Special:Nuke/Dom_Erineu_Bless_II]]).

The files had already been renamed by a steward but Special:Nuke shows only the original names, before renaming. The deletion log for each of the files shows it has been deleted multiple times - see [[:n:File:Deezy_Barras_TRIBAX_NEWS.mp3]] for example.

I also tried Special:Nuke on Pi zero's request, with the same uploads but got the same result. We have also tested it with someone else renaming a file but the same result with Nuke. Pi zero suspects it is getting its file list from somewhere other than the contributions. Any ideas? Cheers.

Reply to "Nuke not working for renamed files"
F.trott (talkcontribs)

For me this extension does not work as expected.

Even if I give the exact name of a page as the Pattern for the page name and leave all other fields to their default values, I always get the answer "There are no new pages in recent changes." and nothing happens to that page.

The page was created two days ago and appears on Special:RecentChanges. The page name in question is something like "XX 123: 12345/YY/0‎", if that helps.

Given that apparently nobody else has a problem with this extension, does somebody have an idea what I might be missing?

(MediaWiki 1.27.1, Nuke 1.2.0) (talkcontribs)

Same problem. I just imported a bunch of pages, the import failed halfway through. When I try to use Nuke, 'nothing in recent changes'. The lack of support in the mediawiki for bulk page operations is completely unexpected and a fundamental problem.

MacFan4000 (talkcontribs)
Squingynaut (talkcontribs)

I also have issues with Nuke. It seems to be running a query against the recentchanges table for the pages to be deleted rather than against the page table or something closer to what I'd expect. I was able to get a few items to show up by commenting out line 258 in Nuke_body.php but I haven't taken the time to go through the code to figure out how the extension is supposed to work or why it would only be, seemingly, for deleting "new pages".

Reply to "How does it work?"
Reception123 (talkcontribs)


My project was recently vandalized by someone using nuke. Is it possible to set a limitation in LocalSettings.php to limit how many pages can be nuked?

Kghbln (talkcontribs)

Oh, that's pretty bad. Limiting the number of pages that may be nuked by one user is currently not possible. It is however possible to decouple the required user right from being in the sysop user group. I have added instructions on how to do this to the extension's page.

Reception123 (talkcontribs)

Okay. Thank you very much for your help.

Reply to "Limit nuke"
Naught101 (talkcontribs)

I changed the first part of the listForm method to allow multiple users, as a comma separated values list. Works pretty well. I don't know if commas can be part of a username, if they can, I guess you'll just have to manually delete those pages, or change the "explode()" separator (the first argument):

function listForm( $usernames, $reason ) {
  global $wgUser, $wgOut, $wgLang;

  $users = explode(",", $usernames);
  $pages = array();
  foreach ($users as $user) {
    $pages += $this->getNewPages( $users );

  if( count( $pages ) == 0 ) {
    $wgOut->addWikiMsg( 'nuke-nopages', $usernames);
    return $this->promptForm();
  $wgOut->addWikiMsg( 'nuke-list', $usernames );
Gettodachopper (talkcontribs)

Hi, thanks for that, I've updated the SpecialNuke_body.php with the above but when I try it out it seems to bunch all of the usernames as one. I've tried separating with commas, semi colons, with and without spaces but with no luck. Is there anything else I need to do other than changing SpecialNuke_body.php? Is there any other way I should be entering the usernames into the mass delete box?

This post was hidden by Kghbln (history)
Reply to "Mass delete from multiple users"