Delete unused volumes Run in API Explorer
Query parameters
-
Filters to process on the prune list, encoded as JSON (a
map[string][]string
).Available filters:
label
(label=<key>
,label=<key>=<value>
,label!=<key>
, orlabel!=<key>=<value>
) Prune volumes with (or without, in caselabel!=...
is used) the specified labels.all
(all=true
) - Consider all (local) volumes for pruning and not just anonymous volumes.
POST
/volumes/prune
curl \
--request POST 'http://api.example.com/v1.49/volumes/prune'
Response examples (200)
{
"VolumesDeleted": [
"string"
],
"SpaceReclaimed": 42
}
Response examples (500)
{
"message": "Something went wrong."
}
Response examples (500)
{
"message": "Something went wrong."
}