How to Delete an Artifact from Vultr Container Registry Repository
-
by Blog Admin
- 23
How to Delete an Artifact from Vultr Container Registry Repository
Permanently removes the selected resource from your Vultr account.
Deleting an artifact from the Vultr Container Registry permanently removes a specific version of a container image from a repository. This action helps eliminate obsolete versions, ensuring that only relevant, up-to-date container images remain in the repository.
Follow this guide to delete an artifact from the container registry repository on your Vultr account using the Vultr API.
- Send a
GETrequest to the List Container Registries endpoint and note the target registry’s ID.console$ curl "https://api.vultr.com/v2/registries" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
GETrequest to the List Repositories endpoint to list all the available repositories and note the target repository image.console$ curl "https://api.vultr.com/v2/registry/{registry-id}/repositories" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
GETrequest to the List Artifacts endpoint to list all the available artifacts and note the target artifact’s digest.console$ curl "https://api.vultr.com/v2/registry/{registry-id}/repository/{repository-image}/artifacts" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
DELETErequest to the Delete Artifact endpoint to delete the target artifact.console$ curl "https://api.vultr.com/v2/registry/{registry-id}/repository/{repository-image}/artifact/{artifact-digest}" \ -X DELETE \ -H "Authorization: Bearer ${VULTR_API_KEY}"
How to Delete an Artifact from Vultr Container Registry Repository Permanently removes the selected resource from your Vultr account. Deleting an artifact from the Vultr Container Registry permanently removes a specific version of a container image from a repository. This action helps eliminate obsolete versions, ensuring that only relevant, up-to-date…
How to Delete an Artifact from Vultr Container Registry Repository Permanently removes the selected resource from your Vultr account. Deleting an artifact from the Vultr Container Registry permanently removes a specific version of a container image from a repository. This action helps eliminate obsolete versions, ensuring that only relevant, up-to-date…