v2

latestSwagger 2.0raw.githubusercontent.com2025-09-17107133447.6 KB
Volume

Delete unused volumes

post/volumes/prune

Query parameters

filtersstring

Filters to process on the prune list, encoded as JSON (a map[string][]string).

Available filters:

  • label (label=<key>, label=<key>=<value>, label!=<key>, or label!=<key>=<value>) Prune volumes with (or without, in case label!=... is used) the specified labels.
  • all (all=true) - Consider all (local) volumes for pruning and not just anonymous volumes.

Response

No error

VolumesDeletedstring[]

Volumes that were deleted

SpaceReclaimedinteger

Disk space reclaimed in bytes