clair icon indicating copy to clipboard operation
clair copied to clipboard

docs should explain how to garbage-collect old images

Open majewsky opened this issue 4 years ago • 1 comments

My Clair DB is slowly filling up with index reports for old deleted images. I would like to clean those up, but I cannot find anything in the docs regarding how to do that in a safe way. grep -Ri delete only finds the DELETE endpoint for notifications, but there is no DELETE endpoint for manifests or index reports. grep -Ri garbage only finds the garbage collection for update operations, but there is no garbage collection for anything else. Am I missing something? What is the best practice here?

Environment

N/A

majewsky avatar Oct 20 '21 14:10 majewsky

Yes, this is an oversight in the current API. I've got some PRs cooking to fix this, I'll link them once I submit them.

hdonnay avatar Nov 19 '21 03:11 hdonnay

I forgot to update this issue: the API was added and documented in 93a835ec75959252d0d7eaac4d16a7ffca468a67, about a year ago 🫠

hdonnay avatar Jan 16 '23 17:01 hdonnay