Manual:DeleteOldRevisions.php

A script.

This script: "Delete 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.

Remember to use the --delete flag to confirm that you want to delete the items matched. Else it will only display the number of items that it can delete.

--114.32.197.61 10:35, 10 May 2012 (UTC)==See also==
 * Manual:Reduce size of the database
 * Extension:SpecialDeleteOldRevisions2

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

[/] # find / -name rebuildall.php /share/MD0_DATA/Web/mediawiki-1.18.3/maintenance/rebuildall.php

[/] # /mnt/ext/opt/apache/bin/php /share/MD0_DATA/Web/mediawiki-1.18.1/maintenance/rebuildall.php [/] # /mnt/ext/opt/apache/bin/php /share/MD0_DATA/Web/mediawiki-1.18.1/maintenance/deleteOldRevisions.php --delete PS the rebuildall.php can take long....