

That or make some attempt to do a free space wipe, or prune the registry, or, you know any reason whatsoever to actually write it in c++.
It’s probably a sufficient wipe to keep your partner or kids from finding stuff, But it’s not going to stop a state agency. Like they won’t have logs from those services from your IP address. Like your registry isn’t absolutely chocked full of your history and the history of those apps.
Forensic analysis on that drive will net them most of every one of those deleted files.
And frankly of all the things to wipe, wth is up with steam?
Look at the code, though; it doesn’t do any of that.
You can kick off a trim in powershell and erase all the whitespace. https://blog.thomasdamgaard.dk/posts/2022/03/06/trim-filesystem-from-powershell/
You can also do secure delete on files from powershell and HDD free space wipes. https://www.majorgeeks.com/content/page/how_to_securely_delete_files_in_windows_10.html