podman-network-rm(1)

πŸ’… podman-network-rm(1) bestie walkthrough πŸŽ€

okay so first things first: this is the podman-network-rm(1) page from the General Commands Manual, and it's literally all about removing networks. no cap, that's the whole vibe. We're gonna go through it together, bestie β€” every flag, every status code, every example, so you don't have to guess. 🫢


🌸 NAME 🌸

podman-network-rm β€” remove one or more networks. iconic deletion behavior ✨

✨ SYNOPSIS ✨

podman network rm [options] [network...]

πŸ’– DESCRIPTION πŸ’–

Delete one or more Podman networks. Simple concept, powerful energy β€” you point it at network names, and it removes them. That's the tea. 🍡

πŸŽ€ OPTIONS πŸŽ€

  • --force, -f β€” big warning energy: this option removes all containers that use the named network. If a container is running, it gets stopped and removed too. So yeah, it's giving "clean slate" but make sure you actually want that πŸ’€.
  • --ignore, -i β€” ignore the error when a specified network does not exist. Other failures, including a network being in use, are still returned. so it's only forgiving about the missing-network situation β€” not about everything else, iykyk.
  • --time, -t=seconds β€” seconds to wait before forcibly stopping the running containers that are using the specified network. The --force option must be specified to use the --time option. Use -1 for infinite wait. patience is a virtue, but only with --force πŸ•°οΈ

🌈 EXAMPLES 🌈

Delete specified network:

# podman network rm podman9
podman9

Delete specified network and all containers associated with the network:

# podman network rm -f fred
fred

Delete specified network and all containers associated with the network after waiting up to 15 seconds:

# podman network rm --force --time 15 fred
fred

πŸ”₯ Exit Status πŸ”₯

  • 0 β€” All specified networks removed slay, clean exit βœ…
  • 1 β€” One of the specified networks did not exist, and no other failures
  • 2 β€” The network is in use by a container or a Pod
  • 125 β€” The command fails for any other reason

πŸ¦‹ SEE ALSO πŸ¦‹

podman(1), podman-network(1) β€” go read these next, bestie πŸ“š

🧚 HISTORY 🧚

August 2019, Originally compiled by Brent Baude bbaude@redhat.com ⟨mailto:bbaude@redhat.com⟩. OG status πŸ‘‘


that's the entire podman-network-rm(1) manual page, August 2019 edition β€” General Commands Manual energy, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from