<p>I have created Mongodb stateful set using <a href="https://github.com/mongodb/mongodb-kubernetes-operator" rel="nofollow noreferrer">mongodb kubernetes operator</a>.</p>
<p>Now I want to delete that stateful set from kubernetes dashboard, but it is getting recreated again and again.</p>
<p>How do we delete stateful set permanently so that it doesn't get created again.</p>

Anonymous Creator
<blockquote>
<p>How do we delete stateful set permanently so that it doesn't get
created again.</p>
</blockquote>
<p>List and check the name of statefulset</p>
<pre><code>kubectl get statefulsets -n &lt;namespace name&gt;
</code></pre>
<p>Command to delete the stateful set permanently</p>
<pre><code>kubectl delete statefulset &lt;Mongo statefulset name&gt; -n &lt;namespace name&gt;
</code></pre>
<p><strong>Update</strong></p>
<p>Try deleting the CRD also</p>
<pre><code>kubectl get crd
</code></pre>
<p>delete CRD for mongo</p>
<pre><code>kubectl delete crd &lt;CRD name&gt;
</code></pre>
