Remove images from a repository by tag or digest.
Section: ECR
Delete one or more images
bash
bash
aws ecr batch-delete-image --repository-name my-app --image-ids imageTag=old-releaseExplanation
Useful in cleanup jobs and lifecycle tooling.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing ECR
Describe image details
Inspect pushed images, tags, sizes, and timestamps.
Set an ECR lifecycle policy
Attach a lifecycle policy document to a repository.