• Cloud Container Engine

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

Deleting a Private Container Image Using an API

You can delete 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

Table 2 Request parameter

Parameter

Description

image-name

Name of the image that you want to delete, in the format of {domain_name}/{image_name}.

Response

Example response:

Delete Repository newbee/index Success!

Status Code

Table 3 describes the status code of this API.

Table 3 Status code

Status Code

Description

200

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