Deleting and restoring pages in MediaWiki

Pages can be deleted or removed from MediaWiki when spammers, abusers, and vandals deface pages or create unwanted pages on your site. When “deleting” a page, the page is actually not deleted. MediaWiki will remove the page from the site In the event a page was deleted by accident, you can restore the page from the deleted pages list.

To prevent users from defacing your MediWiki site, you can restrict teh users from accessing the site. Visit the Adding / Removing account access features in MediaWiki learn more about tutorial. The following section will explain the steps to delete/remove and restore pages in MediaWiki.

Steps to delete and restore pages

Deleting a page

  1. Log into MediaWiki
  2. Navigate to the page you want to delete.
  3. Select delete MediaWiki

    Click the drop arrow on the right top of the page and select Delete.

  4. Click delete page mediawiki

    The page will show Delete “the page name”.

    Select the reason for deleting the page.

    Click the Delete page button.

    Note! Deleted pages can be restored at a later date. The pages are removed from the site; however, they can be made available again if the page was deleted by accident.

    The page is now removed from the wiki.


How to restore a deleted page

  1. Log into MediaWiki
  2. Click Special pages on the left hand side in the sidebar.
  3. View deleted pages mediawiki

    In the page tools section, click View deleted pages.

  4. The deletion log mediawiki

    On the Search deleted pages page, click “the deletion log”.

  5. View restore mediawiki

    On the recent deleted pages section, find the page that was deleted and click view/restore in the deleted pages information.

  6. Restore revisions mediawiki

    The Restore revisions option will display for restoring the page. In the reason text box, enter the reason for restoring the page. In this case, we entered “Deleted by Accident“.

    Click restore.

    Page was restored mediawiki

    MediaWiki will confirm that the page was restored on the View and restore pages page.

Leave a Reply