> Even recommending filter-branch is just aligning the footgun slightly.
Who recommended it?
It ships with git, so without extra tools, it is the implied solution to OP’s question, and the default choice for many.
I’m not saying they recommend it, as the question drives a rhetorical point. But it’s worth mentioning “git filter-repo” as a solution you will not stumble into as easily as the more difficult, brittle and slow “git filter-branch”.
If a point is to be made that confirms OP: removing a file completely isn’t trivial, and thinking one did when one didn’t it is too easy.