Manual:DeleteOrphanedRevisions.php/en

Details
deleteOrphanedRevisions.php is a maintenance script to delete revisions which refer to a non-existing page. It is useful to deal with any orphaned revisions left over after manual deletions of page records from the database. After removing revisions, the script also runs to purge unused text records.

Options
deleteOrphanedRevisions.php accepts one option.