Volume

Delete unused volumes

Changed on
post/volumes/prune

Request

  • Base URL
    /v1.57 (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

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

Changes

    • breaking

      removed the media type application/json for the response with the status

    • info

      api tag Volume added

    • info

      added the non-success response with the status

    • info

      api tag Volume removed

    • info

      removed the non-success response with the status