Actions42
- Container Actions
- Image Actions
- Network Actions
- System Actions
- Volume Actions
Volume → Prune
AI-generatedSummary
Prune Docker volumes, optionally including named volumes
Inputs
- Include Named Volumes (required) — Boolean flag that when true includes named volumes in the prune operation; default false.
Output shape
list of volume identifiers that were pruned
May contain an error field for any volumes that could not be removed; otherwise empty.
Examples
Example 1: Prune only anonymous volumes
Leave Include Named Volumes false (default) to remove only unused local volumes.
Example 2: Prune both anonymous and named volumes
Set Include Named Volumes to true to also remove named volumes that are not in use.