Clear the clipboard through the command line

Updated: 04/26/2017 by Computer Hope

Clear anything in the Windows clipboard using the command below in the Windows command line.

1. Open the Windows command line.

2. From the Windows command line, type the command below.

echo off | clip

After the command above is entered, all contents in the Windows clipboard will be removed.


See the clip command for further information and other examples that can be used with this command.

Additional information

  • See our clipboard and command line definitions for further information and related links on these terms.