github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/man/docker-network-rm.1.md (about) 1 % DOCKER(1) Docker User Manuals 2 % Docker Community 3 % OCT 2015 4 # NAME 5 docker-network-rm - remove one or more networks 6 7 # SYNOPSIS 8 **docker network rm** 9 [**--help**] 10 NETWORK [NETWORK...] 11 12 # DESCRIPTION 13 14 Removes one or more networks by name or identifier. To remove a network, 15 you must first disconnect any containers connected to it. 16 To remove the network named 'my-network': 17 18 ```bash 19 $ docker network rm my-network 20 ``` 21 22 To delete multiple networks in a single `docker network rm` command, provide 23 multiple network names or ids. The following example deletes a network with id 24 `3695c422697f` and a network named `my-network`: 25 26 ```bash 27 $ docker network rm 3695c422697f my-network 28 ``` 29 30 When you specify multiple networks, the command attempts to delete each in turn. 31 If the deletion of one network fails, the command continues to the next on the 32 list and tries to delete that. The command reports success or failure for each 33 deletion. 34 35 # OPTIONS 36 **NETWORK** 37 Specify network name or id 38 39 **--help** 40 Print usage statement 41 42 # HISTORY 43 OCT 2015, created by Mary Anthony <mary@docker.com>