Docker - Delete a network using the docker network rm command

by
Jeremy Canfield |
Updated: February 12 2022
| Docker articles
The docker network rm <name|ID> command can be used to remove a network. Let's say the docker network ls command returns the following.
NETWORK ID NAME DRIVER SCOPE
r0zassvat4e5 foo-network overlay swarm
n3tno3xqjsu7 bar-network overlay swarm
ngfei70a2px2 network003 overlay swarm
foo-network can be removed like this.
docker network rm foo-network
Or using the ID.
docker network rm r0zassvat4e5
Did you find this article helpful?
If so, consider buying me a coffee over at