network_prune
Remove unused Docker networks that have no active container endpoints, excluding built-in networks. Use filters like age or label to target specific networks for cleanup.
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 |