v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1438166195.6 KB

Deletes the resource policy that is set on a repository. After a resource policy is deleted, the permissions allowed and denied by the deleted policy are removed. The effect of deleting a resource policy might not be immediate.

Use DeleteRepositoryPermissionsPolicy with caution. After a policy is deleted, Amazon Web Services users, roles, and accounts lose permissions to perform the repository actions granted by the deleted policy.

delete/v1/repository/permissions/policies#domain&repository

Query parameters

domainstring required

The name of the domain that contains the repository associated with the resource policy to be deleted.

domain-ownerstring

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

repositorystring required

The name of the repository that is associated with the resource policy to be deleted

policy-revisionstring

The revision of the repository's resource policy to be deleted. This revision is used for optimistic locking, which prevents others from accidentally overwriting your changes to the repository's resource policy.

Response

Success