I wanted to consult with you whether framework has scripts for unlinking non-existent files: I know about commons-delinker but it works in online mode and doesn't work on files deleted before start of the script.

So, are there any ready methods/scripts to do this task? Ru.wiki has about 4000+ files with red links to files and such a bot would be really helpful...