From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png

Release status: stable

Implementation Special page
Description Allows to delete page history and to optimize MySQL/MariaDB database to win disk space
Author(s) Pierre Mavro (Pmavrotalk)
Latest version 0.8 (2013-12-22)
MediaWiki 1.14+
Database changes No
License GNU General Public License 2.0
Download Snapshot
Added rights


Translate the DeleteHistory extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

This extension:

  • Deletes old unwanted information in history
  • Frees up to 90% disk space in the MediaWiki database

Prerequisite[edit | edit source]

  • Be sure you've got php5-cli installed. If you're under Debian like OS :
aptitude install php5-cli

Installation[edit | edit source]

Method 1[edit | edit source]

Download the latest snapshot version and uncompress it in your extensions directory (ex. /var/www/mediawiki/extensions) :

wget -O DeleteHistory.zip "https://github.com/deimosfr/mediawiki_DeleteHistory/archive/master.zip"
mkdir DeleteHistory
unzip DeleteHistory.zip
rm -f DeleteHistory.zip

Method 2[edit | edit source]

Clone it via Git :

git clone https://github.com/deimosfr/mediawiki_DeleteHistory.git DeleteHistory

Configuration[edit | edit source]

# DeleteHistory
$wgGroupPermissions['sysop']['DeleteHistory'] = true;
  • That's all, now you can go in Special Pages and try the DeleteHistory extension. If you don't see anything new, it's because you don't have the admin privileges.

User rights[edit | edit source]

If you don't see anything new, it's because you don't have the admin privileges.

Usage[edit | edit source]

Go into Special Page to delete history.

Changelog[edit | edit source]

  • Adding Brazilian Portuguese language
  • Fix minor bug on reporting array
  • Compatible with MediaWiki 1.21
  • Adding German language
  • Adding Engine and Collation tables informations when requesting optimization. It helps to understand the result of it.
  • Fix some vulnerability
  • Compatible with MediaWiki 1.18
  • Show in KB or MB in the database space won when an optimize runs
  • Changed shown order (Result,Optimisation Status,Logs)
  • Added arrays style to results
  • Compatible with MediaWiki 1.16
  • First release