Deleting a private registry permission statement
You can delete all permissions policy statements for your registry by using the following steps.
To delete a permissions policy for a private registry (AWS Management Console)
Open the Amazon ECR console at https://console.aws.amazon.com/ecr/
. -
From the navigation bar, choose the Region to configure your registry permissions policy in.
-
In the navigation pane, choose Registries.
-
On the Registries page, select your Private registry and choose Permissions.
-
On the Private registry permissions page, choose Delete.
-
On the Delete registry policy confirmation screen, choose Delete policy.
To delete a permissions policy for a private registry (AWS CLI)
-
Delete the registry policy.
aws ecr delete-registry-policy \ --region
us-west-2
-
Retrieve the policy for your registry to confirm.
aws ecr get-registry-policy \ --region
us-west-2