MS-DOS and Windows command line cls command

Updated: 07/13/2023 by Computer Hope
cls command

The cls (clear screen) command allows users to clear all the contents on the screen and leave only a prompt.


Cls is an internal command and is available in the following Microsoft operating systems.

Cls syntax


Cls example


Running the cls command at the command prompt would clear your screen of all previous text (history) and only return the prompt. Once done, you can no longer scroll to see all previously entered commands and results.