Deleting tags from a private repository in Amazon ECR
You can delete tags from a private repository.
Open the Amazon ECR console at https://console.aws.amazon.com/ecr/
. -
From the navigation bar, select the region to use.
-
On the Repositories page, select the check box next to the repository you want to remove a tag from.
-
From the Action menu, select Repository tags.
-
On the Repository tags page, select Edit.
-
On the Edit repository tags page, select Remove for each tag you want to delete, and choose Save.
You can delete one or more tags by using the AWS CLI or an API.
-
AWS CLI - untag-resource
-
API action - UntagResource
The following example shows how to delete a tag from a repository using the AWS CLI.
aws ecr untag-resource \ --resource-arn arn:aws:ecr:
region
:account_id
:repository/repository_name
\ --tag-keystag_key