<p>Here's my situation: I have deployed some k8s resources via docker stack liek this:</p>

<p><code>docker stack deploy --compose-file /path/to/docker-compose.yml mystack</code></p>

<p><code>docker stack services mystack</code></p>

<p>Now, I want to delete some of those resources, however, any resource I attempt to delete simply restarts itself immediately. </p>

<p>I have tried to delete the pods, corresponding replica sets, deployments and services but whatever resource I deleted, it restarted itself within a second.</p>

<p>What am I doing wrong?</p>

<p>You should use docker stack to delete the stack</p>

<pre><code>docker stack rm &lt;stack-name&gt;
</code></pre>
