Clear the clipboard through the command line

Updated: 04/26/2017 by Computer Hope
Clipboard

Clear anything in the Windows clipboard using the below command 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 has been entered, all contents in the Windows clipboard will be removed.

Tip

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.