How to clear command history in Windows Command Prompt, Windows Terminal and PowerShell?

Soldato
Joined
1 Nov 2007
Posts
4,385
Location
England
I want to delete the history of the command line applications on Windows 10 (with all the latest updates installed). Does anyone know how to do this at all? I'd be very grateful for some help.
 
Soldato
Joined
6 Feb 2004
Posts
20,543
Location
England
Mine is here. Change your path as necessary...

D:\Users\marc\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt
 
Top