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