2015-09-29 01:57:03 +00:00
|
|
|
<!--[metadata]>
|
|
|
|
+++
|
|
|
|
title = "network rm"
|
|
|
|
description = "the network rm command description and usage"
|
2015-09-30 20:11:36 +00:00
|
|
|
keywords = ["network, rm, user-defined"]
|
2015-09-29 01:57:03 +00:00
|
|
|
[menu.main]
|
|
|
|
parent = "smn_cli"
|
|
|
|
+++
|
|
|
|
<![end-metadata]-->
|
|
|
|
|
|
|
|
# network rm
|
|
|
|
|
2015-10-18 23:47:32 +00:00
|
|
|
Usage: docker network rm [OPTIONS] NAME | ID
|
2015-09-29 01:57:03 +00:00
|
|
|
|
|
|
|
Deletes a network
|
|
|
|
|
|
|
|
--help=false Print usage
|
|
|
|
|
2015-10-18 23:47:32 +00:00
|
|
|
Removes a network by name or identifier. To remove a network, you must first disconnect any containers connected to it.
|
2015-09-29 01:57:03 +00:00
|
|
|
|
2015-10-18 23:47:32 +00:00
|
|
|
```bash
|
2015-09-29 01:57:03 +00:00
|
|
|
$ docker network rm my-network
|
|
|
|
```
|
2015-10-18 23:47:32 +00:00
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [network disconnect ](network_disconnect.md)
|
|
|
|
* [network connect](network_connect.md)
|
|
|
|
* [network create](network_create.md)
|
|
|
|
* [network ls](network_ls.md)
|
|
|
|
* [network inspect](network_inspect.md)
|
|
|
|
* [Understand Docker container networks](../../userguide/networking/dockernetworks.md)
|