v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1441293181.2 KB

Deletes a repository. If the repository contains images, you must either delete all images in the repository or use the <code>force</code> option to delete the repository.

post/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DeleteRepository

Headers

X-Amz-Target'AmazonEC2ContainerRegistry_V20150921.DeleteRepository' required

Request body

registryIdstring

The Amazon Web Services account ID associated with the registry that contains the repository to delete. If you do not specify a registry, the default registry is assumed.

repositoryNamestring required

The name of the repository to delete.

forceboolean

If a repository contains images, forces the deletion.

Response

Success

Example response

{
  "repository": {
    "registryId": 12345678901,
    "repositoryArn": "arn:aws:ecr:us-west-2:012345678901:repository/ubuntu",
    "repositoryName": "ubuntu"
  }
}