windows cmd clear command history code example
Example 1: clear terminal windows
cls
===============================
will clear the windows terminal
Example 2: how to clear my cmd history in windows
//----- The simplest way is to restart the Command Prompt. The command history is cleared automatically every time you close it and start the command prompt again.