I am trying to delete all the pages, created on my mediawiki.

I tried "Special:Nuke" , and these scripts:

php maintenance/nukeNS.php --delete --all

php deleteArchivedRevisions.php --delete

php purgeList.php --purge --all

php nukeNS.php --ns=1 --all --delete

However, I can still see pages. Looks like these scripts does nothing.

  • Are you certain it isn't cached?
    – Steve
    Oct 3, 2019 at 0:48
  • @Steve, I am not. However I tried invalidate the cache as described in manual.
    – zhekaus
    Oct 3, 2019 at 5:15

1 Answer 1


Documentation is your friend.

  • purgeList.php:

    purgeList.php file is a maintenance script to send purge requests for listed pages to squids.

  • deleteArchivedRevisions.php:

    deleteArchivedRevisions.php file is a maintenance script to delete all the archived (hidden from public view) revisions, by clearing out the archive table. These revisions will no longer be restorable. Deleted pages and archived revisions to a given page are permanently deleted, but the complete history of existing pages will remain.

  • nukeNS.php:

    nukeNS.php file is a maintenance script to remove all pages with only one revision (by default) from the MediaWiki namespace, without flooding recent changes, deletion logs, etc. It has originally been added to remove the content of unchanged interface texts from the MediaWiki namespace, but it can be used to basically delete all pages from any namespace.

So nukeNS.php is the one you want (possibly followed up by deleteArchivedRevisions.php if you want the content completely removed from the database). Probably most of your pages are in namespace 0.

  • It looks like they tried all those though, and nothing worked. Oct 3, 2019 at 11:17
  • Probably there wasn't anything in NS 1 (Talk).
    – Tgr
    Oct 3, 2019 at 15:12
  • What NS do they need to use, or how do they figure it out? (nevermind, I see you have that in your last paragraph) Oct 3, 2019 at 15:18
  • You badly read my question! I tried all this stuff!
    – zhekaus
    Oct 3, 2019 at 21:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.