Manual:DeleteOrphanedRevisions.php/en

Details
deleteOrphanedRevisions.php is a maintenance script to delete revisions which refer to a nonexisting page. It is useful to deal with any orphaned revisions left over after manual deletions of page records from the database. There are no command line arguments.