github.com/yogeshlonkar/moby@v1.13.2-0.20201203103638-c0b64beaea94/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 ## Description 31 32 Removes one or more networks by name or identifier. To remove a network, 33 you must first disconnect any containers connected to it. 34 35 ## Examples 36 37 ### Remove a network 38 39 To remove the network named 'my-network': 40 41 ```bash 42 $ docker network rm my-network 43 ``` 44 45 ### Remove multiple networks 46 47 To delete multiple networks in a single `docker network rm` command, provide 48 multiple network names or ids. The following example deletes a network with id 49 `3695c422697f` and a network named `my-network`: 50 51 ```bash 52 $ docker network rm 3695c422697f my-network 53 ``` 54 55 When you specify multiple networks, the command attempts to delete each in turn. 56 If the deletion of one network fails, the command continues to the next on the 57 list and tries to delete that. The command reports success or failure for each 58 deletion. 59 60 ## Related commands 61 62 * [network disconnect ](network_disconnect.md) 63 * [network connect](network_connect.md) 64 * [network create](network_create.md) 65 * [network ls](network_ls.md) 66 * [network inspect](network_inspect.md) 67 * [network prune](network_prune.md) 68 * [Understand Docker container networks](https://docs.docker.com/engine/userguide/networking/)