> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/containerization/docker-swarm/delete-docker-swarm.md).

# Delete docker swarm

1. Make all worker nodes leave the swarm

```bash
sudo docker swarm leave
```

2\. Remove inactive nodes

```bash
node rm
```

3\. Make master node leave the swarm

```bash
sudo docker swarm leave --force
```
