Hello, I would like to use Nuke to delete old pages. How can I modify it to be able to delete older pages?
About this board
Allow nuke to delete older pages
If you have access to LocalSettings, you can change the duration in which recentchanges are recorded to an arbitrary timespan. We repeatedly set it to over a year, then run the rebuildrecentchanges php script, and the desired articles were available to Nuke.
Specifically in LocalSettings.php set
// Two years $wgRCMaxAge = 2 * 365 * 24 * 60 * 60;
Then reset wgRCMaxAge and rerun rebuildrecentchanges.php.
To avoid having a list of thousands of deleted pages you might want to set wgRCMaxAge to 0, run maintenance/rebuildrecentchanges.php and then remove the setting. The list of recent pages will then start from empty.
Does a "MassRollback" extension exists?
How is "recent" defined?
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?
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!
same question here. I'd like to delete pages that I didn't notice years ago from certain spam accounts. Is there a way to just delete everything by a user?
why call it nuke? 2600:387:5:805:0:0:0:6B 01:03, 18 April 2020 (UTC)
People thought it was funny at the time it was created I guess. Anyhow, what's in a name? That which we call a rose by any other name would smell as sweet.
Feature request: option to query on content, not just title
I have installed and used the extension "Nuke," but there are more pages I would like to delete on a full text search query, not just the title. This is line 277 from
extensions/Nuke/includes/SpecialNuke.php in MediaWiki 1.34
$where = 'rc_title LIKE ' . $dbr->addQuotes( $pattern );
where the LIKE clause of the SELECT query is built, to delete articles based on SQL patterns in the title.
I would want an added option to do a full text search on article contents for mass deletion, as well.
I can enter certain terms in the main search box of the wiki, and find a large number of articles I want to delete, as well.
What do you put in the fields?
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?
I added a help page Help:Extension:Nuke. I edited it with various details I found in the code and reading comments on this talk page. Feel free to still improve it yourself, or say if some things are missing.
version (Version 1.1.7) not working with wediawiki 1.16.5
Issue with versions.
I have tried to install a newer version of nuke, either 1.1.7 or 1.1.6 from tags and it comes up with server error on my browser. Nuke comes up in the verson page as 1.1.7 or 1.1.6, and also appears in special pages, but dosent work from there.
I can get an old version to work, but I cant select a bunch of users easily, and there seem to be hundreds of spam users...
anyway here's the current *working* version of Special:Nuke
What if 'mass delete' does not show on Special:Special pages?
Usage issue. Answered.
I finally had to ask for the entire wiki I was working on to be deleted and re-created. I went in and installed ConfirmEdit, and found also that Nuke was still present from the old install so I put a link to that in LocalSettings.php also; It says that after it is installed and the link put in, you should see "Mass delete" in Special Pages. I don't see it. I have reloaded the page and I am logged in. What should I do?
It shows for me as "Mass delete" under "Page tools". If it does not show for you, you probably do not have the rights to use the page. Just got to Special:Nuke to confirm if this is the case.
fatal error undefined getUsers()
Inconsistent versions between MediaWiki and the extension Nuke.
I'am using mediawiki ver 1.16.4, I just downloaded Nuke and put it into my extensions/ folder but when I go to the special page "Special:Nuke" get the following error:
Fatal error: Call to undefined method SpecialNuke::getUser() in $IP/extensions/Nuke/Nuke_body.php on line 10
Make sure you download the localization for your version of MediaWiki from the "download a snapshot" link on the Nuke page http://www.mediawiki.org/wiki/Extension:Nuke.
Dowmloaded latest snapshot and Localization, and error is still the same. Running on a Windows implementation. Call to undefined method SpecialNuke::getUser()
Sounds like you have too old a version of MediaWiki. Try using either a newer version of MediaWiki (Specificly, the getUser method was introduced in MediaWiki 1.18) or using an older version of the nuke extension.
Yes, that indeed is the issue - if you're using MW 1.16.x and cannot upgrade, use Nuke 1.1.1. Compatibility between Nuke releases and versions of MediaWiki can be seen in the factbox of the Nuke extension page.
How can we download the old Nuke 1.1.1 ? Sorry for the newbiness, but I'm confused with the git repository.
Mass Delete by List?
I don't see steps to delete multiple pages simply by listing their full page-names.
Just use commas?
Portal:MyPage, Template:MyTemplate, Gorillas
I think you need one of the other extensions listed on the main page, like batch delete
Yeah, the link is Extension:DeleteBatch.