Is it possible to clear history in windows command prompt?
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
.
The command doskey /listsize=0
should do the trick.