Manual:DeleteOldRevisions.php

deleteOldRevisions.php is a script that Deletes old (non-current) revisions from the database. (according to the source code)

This script deletes page histories. If you run a GFDL licensed wiki you need to be aware that the GFDL requires you to keep the page histories.

Usage
Deleting all old revisions: php deleteOldRevisions.php --delete

Deleting all old revisions from specific pages (page id 1, 2, 15 and 38): php deleteOldRevisions.php --delete 1 2 15 38

Options

 * : Actually performs the deletion. Otherwise the script will only display the number of items that it can delete.
 * : Performs the deletion only on the page ids (numbers) given as unnamed arguments.

Example
[/] # find / -name php /mnt/ext/opt/apache/bin/php

[/] # find. -name deleteOldRevisions.php [/] # php ./maintenance/deleteOldRevisions.php --delete