github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/cli/man/src/network/rm.md (about)

     1  Removes one or more networks by name or identifier. To remove a network,
     2  you must first disconnect any containers connected to it.
     3  To remove the network named 'my-network':
     4  
     5  ```bash
     6    $ docker network rm my-network
     7  ```
     8  
     9  To delete multiple networks in a single `docker network rm` command, provide
    10  multiple network names or ids. The following example deletes a network with id
    11  `3695c422697f` and a network named `my-network`:
    12  
    13  ```bash
    14    $ docker network rm 3695c422697f my-network
    15  ```
    16  
    17  When you specify multiple networks, the command attempts to delete each in turn.
    18  If the deletion of one network fails, the command continues to the next on the
    19  list and tries to delete that. The command reports success or failure for each
    20  deletion.