v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1441293181.2 KB

Deletes a list of specified images within a repository. Images are specified with either an imageTag or imageDigest.

You can remove a tag from an image by specifying the image's tag in your request. When you remove the last tag from an image, the image is deleted from your repository.

You can completely delete an image (and all of its tags) by specifying the image's digest in your request.

post/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage

Headers

X-Amz-Target'AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage' required

Request body

registryIdstring

The Amazon Web Services account ID associated with the registry that contains the image to delete. If you do not specify a registry, the default registry is assumed.

repositoryNamestring required

The repository that contains the image to delete.

Response

Success

Example response

{
  "failures": [],
  "imageIds": [
    {
      "imageDigest": "sha256:examplee6d1e504117a17000003d3753086354a38375961f2e665416ef4b1b2f",
      "imageTag": "precise"
    }
  ]
}