Batch Delete Image
ecr_batch_delete_image | R Documentation |
Deletes a list of specified images within a repository¶
Description¶
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.
Usage¶
Arguments¶
registryId
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.
repositoryName
[required] The repository that contains the image to delete.
imageIds
[required] A list of image ID references that correspond to images to delete. The format of the
imageIds
reference isimageTag=tag
orimageDigest=digest
.
Value¶
A list with the following syntax:
list(
imageIds = list(
list(
imageDigest = "string",
imageTag = "string"
)
),
failures = list(
list(
imageId = list(
imageDigest = "string",
imageTag = "string"
),
failureCode = "InvalidImageDigest"|"InvalidImageTag"|"ImageTagDoesNotMatchDigest"|"ImageNotFound"|"MissingDigestAndTag"|"ImageReferencedByManifestList"|"KmsError"|"UpstreamAccessDenied"|"UpstreamTooManyRequests"|"UpstreamUnavailable",
failureReason = "string"
)
)
)
Request syntax¶
svc$batch_delete_image(
registryId = "string",
repositoryName = "string",
imageIds = list(
list(
imageDigest = "string",
imageTag = "string"
)
)
)