Is it possible to clear history in windows command prompt?
Solution 1:
There is a simple keyboard short-cut, Alt+F7.
There are very few questions on cmd
that are not answered on this reference site.
Alternatively, the history is cleared every time you exit and restart cmd
.
Solution 2:
The command doskey /listsize=0
should do the trick.