github.com/tompao/docker@v1.9.1/docs/reference/commandline/network_rm.md (about) 1 <!--[metadata]> 2 +++ 3 title = "network rm" 4 description = "the network rm command description and usage" 5 keywords = ["network, rm, user-defined"] 6 [menu.main] 7 parent = "smn_cli" 8 +++ 9 <![end-metadata]--> 10 11 # network rm 12 13 Usage: docker network rm [OPTIONS] NAME | ID 14 15 Deletes a network 16 17 --help=false Print usage 18 19 Removes a network by name or identifier. To remove a network, you must first disconnect any containers connected to it. 20 21 ```bash 22 $ docker network rm my-network 23 ``` 24 25 ## Related information 26 27 * [network disconnect ](network_disconnect.md) 28 * [network connect](network_connect.md) 29 * [network create](network_create.md) 30 * [network ls](network_ls.md) 31 * [network inspect](network_inspect.md) 32 * [Understand Docker container networks](../../userguide/networking/dockernetworks.md)