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.
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 |
DELETE /index/repositories/{image-name}/entirety
Parameter |
Description |
---|---|
image-name |
Name of the image that you want to delete, in the format of {domain_name}/{image_name}. |
Example response:
Delete Repository newbee/index Success!
Table 3 describes the status code of this API.