Remove an image Run in API Explorer
Remove an image, along with any untagged parent images that were referenced by that image.
Images can't be removed if they have descendant images, are being used by a running container or are being used by a build.
DELETE
/images/{name}
curl \
--request DELETE 'http://api.example.com/v1.49/images/{name}'
Response examples (200)
[
{
"Untagged": "3e2f21a89f"
},
{
"Deleted": "3e2f21a89f"
},
{
"Deleted": "53b4f83ac9"
}
]
Response examples (200)
[
{
"Untagged": "string",
"Deleted": "string"
}
]
Response examples (404)
{
"message": "Something went wrong."
}
Response examples (404)
{
"message": "Something went wrong."
}
Response examples (409)
{
"message": "Something went wrong."
}
Response examples (409)
{
"message": "Something went wrong."
}
Response examples (500)
{
"message": "Something went wrong."
}
Response examples (500)
{
"message": "Something went wrong."
}