• Cloud Container Engine

cce
  1. Help Center
  2. Cloud Container Engine
  3. User Guide
  4. Operation Guide
  5. Container Registry
  6. Deleting Tags of a Private Container Image Using an API

Deleting Tags of a Private Container Image Using an API

You can delete tags of a private container image using an API.

Before invoking an API, follow 4 in Connecting to the Private Container Registry to obtain the dockercfg file.

Request Header

Table 1 Request header

Name

Description

Example

Authorization

Length of the response body in octets.

Basic X2F1dGhfdG9rZW46N2JiNmYxOGVjYTdjNDliOGE3NzNiMDBjMGNlMzcwNWMtS0k5UlVSQzNFTU45WDFLQllTQkwtMjAxOTAzMTUwOTI0MTEtMTMxYTdkNGE1YmFkYzkwNDRmOTQ0YWExOTJkZmZmYWZkMGZjYTE4NmNjMjFlMzkwMDhlMDllMDA5NjhhOGZkMw==

Content-Type

Media type of the response body sent to the recipient.

application/json

URI

DELETE /index/repositories/{image-name} /entirety

Request

N/A.

Response

Example response:

Delete Repository newbee/index Success!

Status Code

Table 2 describes the status code of this API.

Table 2 Status code

Status Code

Description

200

This operation succeeds, and the tags of the private container image has been deleted.