title: How to remove all services in Docker Swarm
body: <p>I want to remove all services I created in a Swarm:<br>
  <a href="https://i.stack.imgur.com/IwGZE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IwGZE.png" alt="enter image description here"></a></p>
  
  <p>To remove all the containers I used:  </p>
  
  <pre><code>docker rm -f $(docker ps -a -q)
  </code></pre>
  
  <p>Is there a way to remove all the <strong>service</strong> with one line ? </p>
  
  <p>I don't have a stack:<br>
  <a href="https://i.stack.imgur.com/EsnyX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EsnyX.png" alt="enter image description here"></a><br>
  so <code>docker stack rm STACK_NAME</code> won't work.  </p>