github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/docs/reference/commandline/network_rm.md (about) 1 --- 2 title: "network rm" 3 description: "the network rm command description and usage" 4 keywords: "network, rm, user-defined" 5 --- 6 7 <!-- This file is maintained within the docker/docker Github 8 repository at https://github.com/docker/docker/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 # network rm 17 18 ```markdown 19 Usage: docker network rm NETWORK [NETWORK...] 20 21 Remove one or more networks 22 23 Aliases: 24 rm, remove 25 26 Options: 27 --help Print usage 28 ``` 29 30 Removes one or more networks by name or identifier. To remove a network, 31 you must first disconnect any containers connected to it. 32 To remove the network named 'my-network': 33 34 ```bash 35 $ docker network rm my-network 36 ``` 37 38 To delete multiple networks in a single `docker network rm` command, provide 39 multiple network names or ids. The following example deletes a network with id 40 `3695c422697f` and a network named `my-network`: 41 42 ```bash 43 $ docker network rm 3695c422697f my-network 44 ``` 45 46 When you specify multiple networks, the command attempts to delete each in turn. 47 If the deletion of one network fails, the command continues to the next on the 48 list and tries to delete that. The command reports success or failure for each 49 deletion. 50 51 ## Related information 52 53 * [network disconnect ](network_disconnect.md) 54 * [network connect](network_connect.md) 55 * [network create](network_create.md) 56 * [network ls](network_ls.md) 57 * [network inspect](network_inspect.md) 58 * [network prune](network_prune.md) 59 * [Understand Docker container networks](https://docs.docker.com/engine/userguide/networking/)