volume_prune
Remove unused Docker volumes that are not referenced by any container. Specify filters to narrow which volumes to delete; without filters, only anonymous volumes are removed.
Instructions
Remove volumes not referenced by any container, running or stopped.
A volume used by even one stopped container is not "unused" and survives the prune -
remove the container first (or use container_prune, then this) to reclaim its
volumes. Valid filter keys: label (key or key=value), all ("true" as a string -
without it only anonymous volumes are eligible, matching docker volume prune's
default). Use volume_list first to see what currently exists.
Args: filters: Narrow which unused volumes to remove; omit to remove all anonymous ones
Returns: dict: {"VolumesDeleted": [...], "SpaceReclaimed": }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No |