Clear Powershell autocomplete history
-
Type this command into the terminal which would print a path to the
C:\Users\<user_name>\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt
file(Get-PSReadLineOption).HistorySavePath
-
Open the file in a notepad, and you should be able to see and clear the history.
Every Bit of Support Helps!
If you have enjoyed this post, please consider buying me a coffee ☕ to help me keep writing!