All Products
Search
Document Center

Delete a repository

Last Updated: May 28, 2018

Description

Delete an existing repository. This operation also deletes all images in the repository.

Request information

Request line

  1. DELETE /repos/{RepoNamespace}/{RepoName} HTTP/1.1

Request line parameters (URI parameters)

Name Type Required Description
RepoNamespace String Yes The name of the namespace that the repository that must be deleted belongs to. The name can be 2-30 characters in length, and contain lowercase letters, numbers, hyphens (-), and underscores (_). The name cannot start with hyphens and underscores.
RepoName String Yes The name of the repository to be deleted. The name can be 1-64 characters in length, and contain lowercase letters, numbers, hyphens (-), and underscores (_). The name cannot start with hyphens and underscores.

Special request header

None.

Request body

None.

Request body explanation

None.

Response information

Response line

  1. HTTP/1.1 200 OK

Special response header

None.

Response body

  1. {
  2. "data":{},
  3. "requestId":"string"
  4. }

Example

Request example

  1. DELETE /repos/aliyun/tengine HTTP/1.1
  2. <Common request header>

Response example

  1. HTTP/1.1 200 OK
  2. <Common response header>
  3. {
  4. "data": {},
  5. "requestId": "7BF6D761-E7F8-454C-A235-983E5D183B4E"
  6. }