Delete stopped containers
/v1.33
/v1.33
/v1.33
/v1.33
POST
/containers/prune
Container
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1.33/containers/prune'
Response Response Example
200 - Example 1
{
"ContainersDeleted": [
"string"
],
"SpaceReclaimed": 0
}
Request
Query Params
filters
string
optional
map[string][]string
).until=<timestamp>
Prune containers 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>
, or label!=<key>=<value>
) Prune containers with (or without, in case label!=...
is used) the specified labels.Responses
Modified at 2022-09-10 17:56:06