Skip to content

BatchDeleteImage

Source: src/AWS/ECR/BatchDeleteImage.ts

Runtime binding for ecr:BatchDeleteImage.

Deletes images (by tag or digest) from the bound repository. Missing images are reported in the response’s failures array rather than as an error, so deletion is naturally idempotent. Provide the implementation with Effect.provide(AWS.ECR.BatchDeleteImageHttp).

const batchDeleteImage = yield* AWS.ECR.BatchDeleteImage(repository);
const res = yield* batchDeleteImage({ imageIds: [{ imageTag: "stale" }] });
console.log(res.imageIds?.length, "deleted");