REST API - purge

vcenter content registries harbor projects: purge

Remove all repositories, images and members in the project. Storage space of deleted images in the project will be reclaimed through next scheduled Harbor registry garbage collection.


HTTP request

POST https://{server}/rest/vcenter/content/registries/harbor/{registry}/projects/{project}?action=purge

Path Parameters

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


HTTP Status Code: 200



HTTP Status Code Type Description
404 not_found if registry or project cannot be found.
400 not_allowed_in_current_state if Harbor registry is being deleted or the project is not in READY status.
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.