Anki is capable of removing unused media,
but how to remove unused (invalid) links?
There was an addon for Anki 2.0 Remove Missing Audio References - AnkiWeb
Also, we can use Anki’s Tools>Check Media function to find out which images are missing from collection by looking at the “Used on cards but missing from media folder” section - but there’s no option to remove these dead links.
Plus, back in 2013 there was a discussion Missing media files - remove invalid links / Anki Archive / Discussion Area - AnkiMobile/AnkiWeb Support (tenderapp.com)
Damien even paid some attention and noted this for possible implementation.
Are there any native ways or addons to delete dead links from Anki’s notes?
(In my case, the following task requires this functionality:
I have a few thousands of mp3’s with Chinese pronunciation with names equal to the words (Hanzi). I want to batch these words to the Audio field, and then delete the ones which doesn’t have their mp3 (the number of words/notes = 100k+, while only about 6k audio files).
The deletion is necessary since I’d like to activate TTS for those words without mp3’s. But if the Audio field has a link (even broken/invalid), then TTS wouldn’t speak)