Deletes an existing repository. After you delete a repository, all images in the repository are deleted.

Request information

Request line

DELETE /repos/[RepoNamespace]/[RepoName] HTTP/1.1

Request line parameters

Parameter Type Required Description
RepoNamespace String Yes The name of the namespace to which the repository belongs. The name must be 2 to 30 characters in length, and can contain lowercase letters, digits, hyphens (-), and underscores (_). It must not start with a hyphen or an underscore.
RepoName String Yes The name of the repository. The name must be 1 to 64 characters in length, and can contain lowercase letters, digits, hyphens (-), and underscores (_). It must not start with a hyphen or an underscore.

Operation-specific request headers

None.

Request body

None.

Request body parameters

None.

Response information

Response line

HTTP/1.1 200 OK

Operation-specific response headers

None.

Response body

{
    "data":{},
    "requestId":"string"
}

Examples

Sample requests

DELETE /repos/[RepoNamespace]/[RepoName] HTTP/1.1
<Common request headers>

Sample responses

HTTP/1.1 200 OK
<Common response headers>

{
    "data": {},
    "requestId": "7BF6D761-E7F8-454C-A235-983E5D183B4E"
}