Pseudo-malware is pretty much the way to go as a developer in my experience.
I believe his suggestion of a javascript file that deletes itself works only works because javascript gets sandboxed and doesn’t suffer from Windows “flaw” with file locks.
https://devblogs.microsoft.com/oldnewthing/20230911-00/?p=108749
While Raymond does offer a solution he’s also completely side stepping any responsibility on Microsoft’s part in creating and perpetuating this problem without offering their own native solution.
Generally the solution is to do something that looks like malware, or use a third party feature that side steps the problem, as happens with javascript.
https://devblogs.microsoft.com/oldnewthing/20230911-00/?p=108749