github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/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 # network rm 8 9 ```markdown 10 Usage: docker network rm NETWORK [NETWORK...] 11 12 Remove one or more networks 13 14 Aliases: 15 rm, remove 16 17 Options: 18 --help Print usage 19 ``` 20 21 ## Description 22 23 Removes one or more networks by name or identifier. To remove a network, 24 you must first disconnect any containers connected to it. 25 26 ## Examples 27 28 ### Remove a network 29 30 To remove the network named 'my-network': 31 32 ```bash 33 $ docker network rm my-network 34 ``` 35 36 ### Remove multiple networks 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 commands 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/network/)