Delete an image from a repository

aws ecr

  • Push, pull, and manage container images.
    More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr/index.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

aws ecr batch-delete-image --repository-name {{repository}} --image-ids imageTag={{latest}}

click the source code to copy install aws ecr on any operating system with command-not-found.com