Delete unused images Run in API Explorer
Query parameters
-
Filters to process on the prune list, encoded as JSON (a
map[string][]string
). Available filters:dangling=<boolean>
When set totrue
(or1
), prune only unused and untagged images. When set tofalse
(or0
), all unused images are pruned.until=<string>
Prune images created before this timestamp. The<timestamp>
can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g.10m
,1h30m
) computed relative to the daemon machine’s time.label
(label=<key>
,label=<key>=<value>
,label!=<key>
, orlabel!=<key>=<value>
) Prune images with (or without, in caselabel!=...
is used) the specified labels.
POST
/images/prune
curl \
--request POST 'http://api.example.com/v1.49/images/prune'
Response examples (200)
{
"ImagesDeleted": [
{
"Untagged": "string",
"Deleted": "string"
}
],
"SpaceReclaimed": 42
}
Response examples (500)
{
"message": "Something went wrong."
}
Response examples (500)
{
"message": "Something went wrong."
}