Remove an image
Changed onRemove 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.
Request
- Base URL/v1.57 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
Path parameters
Image name or ID
Query parameters
Remove the image even if it is being used by stopped containers or has other tags
Do not delete untagged parent images
Select platform-specific content to delete. Repeat the parameter to select multiple platforms. Each platform is a OCI platform encoded as a JSON string.
Response
The image was deleted successfully
Changes
- breaking
removed the media type
application/jsonfor the response with the status - info
api tag
Imageadded - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking
- breaking
for the
queryrequest parameterforce, default valuefalsewas removed - breaking
for the
queryrequest parameternoprune, default valuefalsewas removed - info
api tag
Imageremoved - info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- breaking