Manual:DeleteRevision.php

deleteRevision.php is a maintenance script located in the maintenance directory that can be used to delete one or more revisions by moving them to the archive table.

Usage
php deleteRevision.php [ ...] (This will ...)