Cleaning Up Block Reference IDs

I have looked everywhere to see if there are plugins or methods to clean up unused block reference ids. I do a lot of embeds for “temporary” workbenches which are deleted later so all my original notes have reference ids attached to them that are no longer used. It is a pain to go back and look for which ones aren’t used anymore.

Anyone found a good solution or workflow for keeping your notes clean in this way?