Deleting a private registry permission statement - Amazon ECR
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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 (Amazon Web Services Management Console)
  1. Open the Amazon ECR console at https://console.amazonaws.cn/ecr/.

  2. From the navigation bar, choose the Region to configure your registry permissions policy in.

  3. In the navigation pane, choose Registries.

  4. On the Registries page, select your Private registry and choose Permissions.

  5. On the Private registry permissions page, choose Delete.

  6. On the Delete registry policy confirmation screen, choose Delete policy.

To delete a permissions policy for a private registry (Amazon CLI)
  1. Delete the registry policy.

    aws ecr delete-registry-policy \ --region us-west-2
  2. Retrieve the policy for your registry to confirm.

    aws ecr get-registry-policy \ --region us-west-2