network_prune
Remove unused Docker networks that have no active containers, excluding built-in networks. Optionally filter by creation time or labels.
Instructions
Remove networks that have no active container endpoints.
Built-in networks (bridge, host, none) are never removed. Only networks with zero
connected containers are eligible. Valid filter keys: until (RFC3339 timestamp or
duration — removes networks created before that point), label (key or key=value). Use
network_remove to delete one specific network instead.
args: filters - Narrow which networks to remove; omit to remove all unused custom networks returns: dict - {"NetworksDeleted": [...]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No |