5V0-23.20 · Question #17
How can you remove unreferenced container images from a project in an embedded Registry Service?
The correct answer is A. Delete images in Content Library. Deleting Artifact: When an artifact is not referenced by any OCI index, you can delete the artifact freely which will delete its manifest and all associated tags. When an artifact is referenced by an OCI index, you cannot delete it. In order to delete this artifact, you must…
Question
How can you remove unreferenced container images from a project in an embedded Registry Service?
Options
- ADelete images in Content Library.
- BUse kubectl to delete the images.
- CDelete the namespace using the vSphere Client.
- DPurge a namespace using the vSphere Client.
How the community answered
(34 responses)- A76% (26)
- B3% (1)
- C15% (5)
- D6% (2)
Explanation
Deleting Artifact: When an artifact is not referenced by any OCI index, you can delete the artifact freely which will delete its manifest and all associated tags. When an artifact is referenced by an OCI index, you cannot delete it. In order to delete this artifact, you must first delete all OCI indexes referencing this artifact first, remembering that an artifact can be referenced by multiple parents artifacts pushed onto Harbor by different users. So when deleting an OCI index holding 9 children artifacts not referenced by any other index and 1 child artifact referenced by another index, only 9 out of 10 children artifacts will be deleted. To delete any artifact in the Harbor interface, click on the artifact and select `Delete' and confirm. As a vSphere administrator, you can purge the images for a project in the private image registry by request from DevOps engineers. Purging images from the private image registry deletes all
Topics
Community Discussion
No community discussion yet for this question.