BulkSpamCleanup

From Yosemite Manifesto
Revision as of 02:56, 10 September 2014 by Admin (talk | contribs) (Created page with "This is how I (DBooth) did a bulk cleanup of wiki spam: 1. Enabled the extensions for batch deletion in wiki/LocalSettings.php on the server: <nowiki> ################# Exte...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is how I (DBooth) did a bulk cleanup of wiki spam:

1. Enabled the extensions for batch deletion in wiki/LocalSettings.php on the server:

################# Extensions for batch deletion ####################
require_once "$IP/extensions/Nuke/Nuke.php";
require_once "$IP/extensions/DeleteBatch/DeleteBatch.php";
require_once "$IP/extensions/DynamicPageList/DynamicPageList.php";
require_once "$IP/extensions/NukeDPL/NukeDPL.php";

2. Checked the list of [PagesNotCreatedByAdmin]]

3. If it looked like they should all or almost all be deleted, go to Special:NukeDPL and paste into the form:

  notmodifiedby = Admin
  nottitlematch = Main\_Page

and submit.

4. Uncheck any that should NOT be deleted, and submit.

5. Delete all revision history. WARNING: this applies to *all* pages! No 'undo' will be possible for any page after this! See http://www.mediawiki.org/wiki/Manual:DeleteArchivedRevisions.php

cd wiki/maintenance
php deleteArchivedRevisions.php
# And if the number of revisions to delete looks correct, do:
php deleteArchivedRevisions.php --delete

6. Delete unused accounts (see http://www.mediawiki.org/wiki/Manual:RemoveUnusedAccounts.php ):

cd wiki/maintenance
php removeUnusedAccounts.php
# And if the result looks correct, do:
php removeUnusedAccounts.php --delete

7. Disable the extensions for batch deletion in wiki/LocalSettings.php on the server, because they are too dangerous to leave enabled:

################# Extensions for batch deletion ####################
# require_once "$IP/extensions/Nuke/Nuke.php";
# require_once "$IP/extensions/DeleteBatch/DeleteBatch.php";
# require_once "$IP/extensions/DynamicPageList/DynamicPageList.php";
# require_once "$IP/extensions/NukeDPL/NukeDPL.php";

Background Info

These are pages that I used to figure out how to do the above.