github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/docs/source/markdown/podman-network-rm.1.md (about) 1 % podman-network-rm(1) 2 3 ## NAME 4 podman\-network\-rm - Remove one or more CNI networks 5 6 ## SYNOPSIS 7 **podman network rm** [*options*] [*network...*] 8 9 ## DESCRIPTION 10 Delete one or more Podman networks. 11 12 ## OPTIONS 13 #### **--force**, **-f** 14 15 The `force` option will remove all containers that use the named network. If the container is 16 running, the container will be stopped and removed. 17 18 ## EXAMPLE 19 20 Delete the `cni-podman9` network 21 22 ``` 23 # podman network rm cni-podman9 24 Deleted: cni-podman9 25 ``` 26 27 Delete the `fred` network and all containers associated with the network. 28 29 ``` 30 # podman network rm -f fred 31 Deleted: fred 32 ``` 33 34 ## Exit Status 35 **0** All specified networks removed 36 37 **1** One of the specified networks did not exist, and no other failures 38 39 **2** The network is in use by a container or a Pod 40 41 **125** The command fails for any other reason 42 43 ## SEE ALSO 44 podman(1), podman-network(1), podman-network-inspect(1) 45 46 ## HISTORY 47 August 2019, Originally compiled by Brent Baude <bbaude@redhat.com>