Thread:Project:Support desk/Reducing the size of mediawiki database/reply (4)

When you remove a page, it does not really get deleted from your wiki, but instead gets stored in the database table "archive". You can empty this table by using the maintenance script deleteArchivedRevisions.php. See Manual:DeleteArchivedRevisions.php for details! This will also delete those rows from the "text" table, which afterwards are no longer used.

If that is not enough, you can also use the maintenance script deleteOldRevisions.php to delete all old, non-deleted revisions. This will essentially remove the history from your wiki. See Manual:DeleteOldRevisions.php for details!

To refresh the searchindex (and a few other tables), you can run the maintenance script rebuildall.php. See Manual:Rebuildall.php!