How to clean the clipboard?
You can use xsel
. To install it run this command in a terminal:
sudo apt install xsel
Now, when you want to clear your clipboard, enter
xsel -bc
For more information about this command enter man xsel
Source.
This should work:
xclip -sel clip < /dev/null