Update: I just had an instance where --delete didn't work for me (as well).
It does seem to be a little murky. The clipboard implementation in X is
kinda weird/primitive, although elegant in a certain way.
As you say in a later followup, it seems to be dependent on which
"xterm-like" terminal program you're running. I just had an instance
running in LXterminal where:
xsel --delete -b
didn't do anything. The contents of the -b clipboard stayed intact.
However, the following worked in this instance, and I *think* that it will
always work:
xsel -ib < /dev/null
P.S. There is some functionality of xsel where it "backgrounds" itself.
That is, you do a "ps" listing and it shows "xsel" processes running in the
background. The "man page" explains this, but it never made any sense to
me. In any case, you might try killing these processes; that may cause the
clipboard contents to vanish. Worth a try...
--
"This ain't my first time at the rodeo"
is a line from the movie, Mommie Dearest, said by Joan Crawford at a board meeting.