REST API - delete

vcenter content registries harbor projects: delete

Deletes the specified project from Harbor registry. Repositories and images in the project will be removed upon project deletion. Storage space of deleted images in the project will be reclaimed through next scheduled Harbor registry garbage collection. In vSphere 7.0, a Harbor registry is deployed in a vSphere cluster with vSphere namespaces enabled. When a namespace is deleted, a project with same name as the namespace is deleted from the Harbor registry, so this operation should not be called.


HTTP request

DELETE https://{server}/rest/vcenter/content/registries/harbor/{registry}/projects/{project}

Path Parameters

Name Type Description
registry string Identifier of the registry.
project string Identifier of the Harbor project.


HTTP Status Code: 200



HTTP Status Code Type Description
400 not_allowed_in_current_state if Harbor registry is being deleted.
404 not_found if registry or project cannot be found. In vSphere 7.0, the existing project could have been deleted automatically when a namespace with the same name is deleted.
500 error if the system reports an error while responding to the request.
401 unauthenticated if the user can not be authenticated.
403 unauthorized if the user does not have ContentLibrary.ManageRegistryProject privilege.