How to Delete a Vultr Container Registry

Updated on September 23, 2024

Deleting a Vultr Container Registry removes all associated repositories and images, helping to manage costs and simplify your infrastructure by eliminating unused or redundant registries. This process ensures that you only retain the resources you need, streamlining your container management.

Follow this guide to delete a container registry on your Vultr account using the Vultr Customer Portal, API, or CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products and click Container Registry.

  2. Click your target registry to open its management page.

  3. Click delete icon on the top-right of the management page.

  4. Check the Yes, destroy this Container Registry box in the confirmation prompt, and click Destroy Container Registry to permanently delete the target registry.

  1. Send a GET request 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}"
    
  2. Send a DELETE request to the Delete Container Registry endpoint to delete the target registry.

    console
    $ curl "https://api.vultr.com/v2/registry/{registry-id}" \
        -X DELETE \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  1. List all the available registries in your Vultr account and note the target registry's ID.

    console
    $ vultr-cli container-registry list
    
  2. Delete the target registry.

    console
    $ vultr-cli container-registry delete <registry-id>
    

Comments

No comments yet.