Thread:Project:Support desk/Permanent deletion of page from database/reply (3)

Have a look at deleteArchivedRevisions.php.