network_prune
Remove custom Docker networks with no active containers. Filter by timestamp or label for targeted cleanup of unused networks.
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).
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 |