Deletes a list of specified images that are within a repository in a public registry. 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 digest of the image in your request.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST '/' \
--header'X-Amz-Target;' \
--header'Content-Type: application/json' \
--data-raw''
Response Response Example
200 - Example 1
{"imageIds":[],"failures":[]}
Request
Header Params
X-Amz-Target
string
required
Body Params application/json
registryId
string
optional
The Amazon Web Services account ID, or registry alias, that's associated with the registry that contains the image to delete. If you do not specify a registry, the default public registry is assumed.
>= 2 characters<= 50 characters
repositoryName
string
required
The repository in a public registry that contains the image to delete.