Skip to main content

Clear Powershell autocomplete history

  1. 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
  2. Open the file in a notepad, and you should be able to see and clear the history.

Reference

Every Bit of Support Helps!

If you have enjoyed this post, please consider buying me a coffee ☕ to help me keep writing!