This is not hypothetical
The Medusa ransomware crew — the one the FBI, CISA and MS-ISAC put out a joint advisory on in March 2026 — does this by hand on the way out. After they have what they came for, before the encryption starts, they run a single line that deletes the PowerShell history file so the responders who arrive next can’t read back what was done.
It is documented, verbatim, in MITRE ATT&CK’s own record of the technique:
Remove-Item (Get-PSReadlineOption).HistorySavePath
No exploit. No custom tooling. A one-line command that ships with every copy of Windows, run by a normal user. The same line you are about to run yourself — and the only question is whether your SOC says a word about it.