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": }
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "volume_prune"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No |