aws-ecr:tldr:b9d5c
aws-ecr: Delete a repository.
$ aws ecr delete-repository --repository-name ${repository} --force
try on your machine
This command is used to delete an ECR (Elastic Container Registry) repository in AWS (Amazon Web Services).
Here's a breakdown of the command:
aws
: This command is part of the AWS Command Line Interface (CLI), which is a unified tool to manage various AWS services from the command line.ecr
: This is a sub-command specifically for interacting with the Elastic Container Registry service.delete-repository
: This is the sub-command used to delete a repository.--repository-name ${repository}
: This flag specifies the name of the repository that you want to delete. The${repository}
is a placeholder that should be replaced with the actual name of the repository you want to delete.--force
: This flag is used to force the deletion of the repository, even if it contains images. By default, AWS ECR allows deletion only if the repository is empty. The--force
flag bypasses this restriction.
In summary, this command deletes an AWS ECR repository with the specified name, including any images it may contain, and the --force
flag ensures that the repository is deleted even if it is not empty.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.