How to clear the clipboard in Windows 11 or 10 using Command

The Windows 11 clipboard is a powerful tool, although it is not new, it is quite valuable. The clipboard function in any operating system allows users to copy and paste text, images, and files by saving the path to content you just have copied but temporarily. However, many times you may need to clear your clipboard history to ensure some sensitive information would not be in the wrong hands, especially if you are using a shared PC system.

There are multiple methods to clear the Clipboard in Windows 11 or 10, however, here we focus mainly on the command line method to empty the clipboard using the Powershell.

1. Accessing the PowerShell:

As we use the command line in this article, open PowerShell or Terminal app.

  • Step 1: Click on the Start Menu icon in the taskbar.
  • Step 2: Type “PowerShell” in the search box.
  • Step 3: When it appears, select “Run as administrator” from the right side.
Running Powershell as Admin for Windows 11

2. Empty the Clipboard history command:

Once you have PowerShell access, the next thing is to use a command that can clear the Windows 11 Clipboard history without visiting its GUI management interface.

Step 1: Use the Clipboard Clearing Command given below:

Restart-Service -Name "cbdhsvc*" -force

Step 2: Press the Enter key to execute the command

3: Verify the Clipboard is Cleared

After using the command in the PowerShell, you can confirm that all the history is cleared by using the Clipboard management interface. For that simply press Win+V keys on your keyboard. You will see the “Nothing is here” message.

command to clear windows clipboard history

Note: Every time you Log out or restart your PC, it will also clear the clipboard history automatically. So, don’t worry if you forget to run this command then log out of your current session.

Other Articles: