how to clear console cmd code example Example: clear in windows cmd cls #this command clears the command window in Windows Command Prompt