<p>I've created a label with:</p>

<p><code>kubectl label pods &lt;pod id&gt; color=green</code></p>

<p>but removing it using:</p>

<p><code>kubectl label pods bar -color</code></p>

<p>gives:</p>

<p><code>unknown shorthand flag: 'c' in -color</code></p>

<p>Any suggestions?</p>

Snowcrash
<p>The dash goes at the end of the label name to remove it, per <code>kubectl help label</code>:</p>

<pre><code># Update pod 'foo' by removing a label named 'bar' if it exists.
# Does not require the --overwrite flag.
kubectl label pods foo bar-
</code></pre>

<p>So try <code>kubectl label pods bar color-</code>.</p>
