I see an awful lot of promotional going 404 this year.
Doing a search and replace of one's affiliate code risks getting a DMCA so 404ing the stuff seems like the easiest and really about the only way to go.
I miss the old days of build and forget. Now it is build and delete after your sponsor goes belly up and just stops paying.
Right now I have a search on my local server mirror in progress of another sponsor that has stopped paying.