There were time where I have to take down a web apps and making thousands of URL reference broken. So the only way to fix that is to remove all those links. Thankfully wordpress has a vast variety of regex search and replace.
I am using Search Regex plugins (You can find it on WP Plugins directory)
Refer to the screenshot below.