Deleting Images

The /projects/{project_name}/repositories/{repository_name} endpoint deletes images that are part of a project. The name of the project and the repository containing the image must be passed in the {project_name} and {repository_name} parameters, respectively.

Important:If you are using a shared registry, the project names are automatically prefixed with your 4-character tenant ID. Omit this tenant ID when you specify the project name. For example, if your project name is 1234-1000-project1-April2020 (where 1234 is your tenant ID), use the URI /registry/api/v1/projects/1000-project1-April2020.

Item

Description

URI

/registry/api/v1/projects/{project_name}/repositories/{repository_name} 

Method

DELETE 

Query parameters

project_name, repository_name (both are path parameters and required)

Request body

N/A

Response codes

200: Success

400: Bad request

401: Unauthorized

500: Internal server error

Sample Response

In case of a successful DELETE operation, a response code 200 is returned.