Manual:DeleteSelfExternals.php

Details
deleteSelfExternals.php file is a 2>Special:MyLanguage/Manual:Maintenance scripts|maintenance script that deletes self-references to  from the externallinks table.

It processes 1000 items in every batch.

Options
deleteSelfExternals.php does not take any option.