<p>Is there a different way than <code>kubectl edit</code> to delete an annotation in Kubernetes? </p>

<p>I do not like the interactivity of <code>kubectl edit</code>. I prefer something usable in a script.    </p>

Michal Foksa
<p>Use minus <code>-</code> sign at the end of the annotation in <code>kubectl annotate</code>.</p>

<p>Example:</p>

<p><code>kubectl annotate service shopping-cart prometheus.io/scrape-</code>  </p>

<p>Removes annotation <code>prometheus.io/scrape</code> from <code>shopping-cart</code> service.</p>
