Actions42
- Container Actions
- Image Actions
- Network Actions
- System Actions
- Volume Actions
Network → Prune
AI-generatedSummary
Prunes unused Docker networks, removing them from the Docker host.
Inputs
- filters — Optional filter criteria to limit which networks are considered for pruning.
Output shape
an object containing an array of deleted network IDs
The response includes a "networks" field listing the IDs that were removed; if no networks match, the array is empty.
Examples
Example 1: Remove all unused networks older than a given timestamp
filters: {"until": {"minutes": 60}}
Example 2: Prune all dangling networks without additional filters
filters: null
Example 3: Prune networks with a specific label
filters: {"label": "project=test"}