I believe it would be extremely useful to have an option to remove all media associated with a note/file if there are not any active references to it in any other notes.
I tend to regularly drag images (screenshots, etc.) into notes when in meetings, and while I can certainly iterate over all non-.md files in the vault, grep for their presence in all of the notes, etc., that’s not necessarily something that all users will have the skills to do, or will even feel comfortable doing.