podman-network-prune(1)

podman-network-prune1

Remove all unused networks

Usage

podman network prune [options]

Overview

Remove all unused networks. An unused network is defined by a network which has no containers connected or configured to connect to it. It does not remove the so-called default network which goes by the name of podman.

Options

--filter

Provide filter values.

If there is more than one filter, the --filter option should be passed multiple times: --filter label=test --filter until=10m.

Supported filters:

FilterDescription
labelOnly remove networks, with (or without, in the case of label!=[...] is used) the specified labels.
untilOnly remove networks created before given timestamp.

The label filter accepts two formats. One is the label=key or label=key=value, which removes networks with the specified labels. The other format is the label!=key or label!=key=value, which removes networks without the specified labels.

The until filter can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed relative to the machine’s time.

--force, -f

Do not prompt for confirmation

Examples

Prune networks:

podman network prune

Prune all networks created not created in the last two hours:

podman network prune --filter until=2h

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

History

February 2021, Originally compiled by Brent Baude [email protected] ⟨mailto:[email protected]⟩

From podman 6.1.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.