github.com/brahmaroutu/docker@v1.2.1-0.20160809185609-eb28dde01f16/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  ```markdown
    14  Usage:  docker network rm NETWORK [NETWORK...]
    15  
    16  Remove one or more networks
    17  
    18  Aliases:
    19    rm, remove
    20  
    21  Options:
    22        --help   Print usage
    23  ```
    24  
    25  Removes one or more networks by name or identifier. To remove a network,
    26  you must first disconnect any containers connected to it.
    27  To remove the network named 'my-network':
    28  
    29  ```bash
    30    $ docker network rm my-network
    31  ```
    32  
    33  To delete multiple networks in a single `docker network rm` command, provide
    34  multiple network names or ids. The following example deletes a network with id
    35  `3695c422697f` and a network named `my-network`:
    36  
    37  ```bash
    38    $ docker network rm 3695c422697f my-network
    39  ```
    40  
    41  When you specify multiple networks, the command attempts to delete each in turn.
    42  If the deletion of one network fails, the command continues to the next on the
    43  list and tries to delete that. The command reports success or failure for each
    44  deletion.
    45  
    46  ## Related information
    47  
    48  * [network disconnect ](network_disconnect.md)
    49  * [network connect](network_connect.md)
    50  * [network create](network_create.md)
    51  * [network ls](network_ls.md)
    52  * [network inspect](network_inspect.md)
    53  * [Understand Docker container networks](../../userguide/networking/dockernetworks.md)