<p>Can I delete multiple CRDS whose names contain the same string with a <code>kubectl</code>/<code>bash</code> one-liner?
For example I'd like to delete all the ones below:</p>
<pre class="lang-bash prettyprint-override"><code>kafkabridges.kafka.strimzi.io
kafkaconnectors.kafka.strimzi.io
kafkaconnects.kafka.strimzi.io
kafkamirrormaker2s.kafka.strimzi.io
kafkamirrormakers.kafka.strimzi.io
kafkarebalances.kafka.strimzi.io
kafkas.kafka.strimzi.io
kafkatopics.kafka.strimzi.io
kafkausers.kafka.strimzi.io
</code></pre>

Fabrice Jammes
<p>Same logic; <strong>kafka.strimzi.io</strong> is the common string:</p>
<pre><code>for crd in `kubectl get crds -oname | grep kafka.strimzi.io | awk -F / '{ print $2 }'`; do kubectl delete crd $crd; done
</code></pre>
