<p>How to delete the Stateful Sets in Kubernetes permanently? They get re-created even after I delete them by setting <code>--force</code> and <code>--grace-period=0</code> flags.</p>

<p>I know I can delete them all by removing the deployment itself. I'm interested in knowing if there is any way to preserve the deployments and delete only unwanted Stateful Sets.</p>

Balajee Venkatesh
<p>Scaling the deployment to 0 will remove the pods, but will keep the deployment:</p>

<p><code>kubectl scale deploy/my-deployment --replicas=0</code></p>
