Thread:Manual talk:Pywikibot/Remove dead internal links/reply

Try the script "image.py". There is no documentation on it here, but within the script it states you simply need to run it with the file name as the first parameter, and it will delink images (or if you provide a second unnamed parameter, it will replace the first image with the second image).