Amazon Elastic Container Registry Public
  1. Root
Amazon Elastic Container Registry Public
  • Root
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
  1. Root

/

POST
/
Deletes a repository in a public registry. If the repository contains images, you must either manually delete all images in the repository or use the force option. This option deletes all images on your behalf before deleting the repository.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "registryId": "string",
    "repositoryName": "string",
    "force": true
}'
Response Response Example
200 - Example 1
{
    "repository": {
        "repositoryArn": "string",
        "registryId": "string",
        "repositoryName": "string",
        "repositoryUri": "string",
        "createdAt": "string"
    }
}

Request

Header Params
X-Amz-Target
string 
required
Body Params application/json
registryId
string 
optional
The Amazon Web Services account ID that's associated with the public registry that contains the repository to delete. If you do not specify a registry, the default public registry is assumed.
Match pattern:
[0-9]{12}
repositoryName
string 
required
The name of the repository to delete.
>= 2 characters<= 205 characters
Match pattern:
(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*
force
boolean 
optional
The force option can be used to delete a repository that contains images. If the force option is not used, the repository must be empty prior to deletion.
Examples

Responses

🟢200Success
application/json
Body
repository
object 
optional
The repository that was deleted.
repositoryArn
string 
optional
The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the arn:aws:ecr namespace, followed by the region of the repository, Amazon Web Services account ID of the repository owner, repository namespace, and repository name. For example, arn:aws:ecr:region:012345678910:repository/test.
>= 1 characters<= 2048 characters
registryId
string 
optional
The Amazon Web Services account ID that's associated with the public registry that contains the repository.
Match pattern:
[0-9]{12}
repositoryName
string 
optional
The name of the repository.
>= 2 characters<= 205 characters
Match pattern:
(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*
repositoryUri
string 
optional
The URI for the repository. You can use this URI for container image push and pull operations.
createdAt
string <date-time>
optional
The date and time, in JavaScript date format, when the repository was created.
🟠480ServerException
🟠481InvalidParameterException
🟠482RepositoryNotFoundException
🟠483RepositoryNotEmptyException
🟠484UnsupportedCommandException
Previous
/
Next
/
Built with