How to Delete a Repository from Vultr Container Registry
-
by Blog Admin
- 20
How to Delete a Repository from Vultr Container Registry
Permanently removes the selected resource from your Vultr account.
Deleting a Repository from the Vultr Container Registry frees up storage space and removes outdated or unnecessary images. This process helps streamline management and ensures that your registry contains only relevant and up-to-date resources. By keeping your repositories organized, you can maintain an efficient and clutter-free container registry.
Follow this guide to delete a repository from your container registry on your Vultr account using the Vultr Customer Portal, API, or CLI.
Vultr Customer Portal
- Navigate to Products and click Container Registry.
- Click your target registry to open its management page.
- Click Repositories to view all the available repositories.
- Locate the target repository.
- Click the delete icon to delete the target repository.
- Check the Yes, destroy this Repository box in the confirmation prompt, and click Destroy Repository to permanently delete the target repository.
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
DELETErequest to the Delete Repository endpoint to delete the target repository.console$ curl "https://api.vultr.com/v2/registry/{registry-id}/repository/{repository-image}" \ -X DELETE \ -H "Authorization: Bearer ${VULTR_API_KEY}"
Vultr CLI
- List all the available registries in your Vultr account and note the target registry’s ID.
console
$ vultr-cli container-registry list - List all the available repositories in your registry and note the target repository image.
console
$ vultr-cli container-registry repository list <registry-id> - Delete the target repository.
console
$ vultr-cli container-registry repository delete <registry-id> --image-name <repository-image>
How to Delete a Repository from Vultr Container Registry Permanently removes the selected resource from your Vultr account. Deleting a Repository from the Vultr Container Registry frees up storage space and removes outdated or unnecessary images. This process helps streamline management and ensures that your registry contains only relevant and…
How to Delete a Repository from Vultr Container Registry Permanently removes the selected resource from your Vultr account. Deleting a Repository from the Vultr Container Registry frees up storage space and removes outdated or unnecessary images. This process helps streamline management and ensures that your registry contains only relevant and…